汽车包装到R中的qqplot-如何插入x和y轴的比例 [英] car package to qqplot in R - how to insert the scale of x and y axis

查看:164
本文介绍了汽车包装到R中的qqplot-如何插入x和y轴的比例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

答案不太明确,我正在使用称为CAR的R软件包来绘制qqplot.

我的问题是-我能够绘制图形,但不能使用-xlim或ylim来放置轴的比例.

关于如何完成工作的任何想法

其他信息:

qqPlot {car}
Version:    2.0-22
Depends:    R (≥ 2.14.0), stats, graphics    
## Default S3 method:
    qqPlot(x, distribution="norm", ...,
        ylab=deparse(substitute(x)), xlab=paste(distribution, "quantiles"), 
        main=NULL, las=par("las"),
        envelope=.95,  
        col=palette()[1], col.lines=palette()[2], lwd=2, pch=1, cex=par("cex"), 
        line=c("quartiles", "robust", "none"),  
        labels = if(!is.null(names(x))) names(x) else seq(along=x),
        id.method = "y", 
        id.n =if(id.method[1]=="identify") Inf else 0,
        id.cex=1, id.col=palette()[1], grid=TRUE)



sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] car_2.0-22 

解决方案

它似乎不可调.如果需要进行这样的修改,建议您切换到基本功能stats::qqnormstats::qqplot.如果您想要一个更具吸引力的情节,可以切换到ggplot2.查看 http://docs.ggplot2.org/current/stat_qq.html

The answer is little specific, I am using this package called CAR for R to plot qqplot.

My question is - I am able to plot the graph but not to put the scale of the axis using - xlim or ylim.

Any ideas of how to get it done

Additional info:

qqPlot {car}
Version:    2.0-22
Depends:    R (≥ 2.14.0), stats, graphics    
## Default S3 method:
    qqPlot(x, distribution="norm", ...,
        ylab=deparse(substitute(x)), xlab=paste(distribution, "quantiles"), 
        main=NULL, las=par("las"),
        envelope=.95,  
        col=palette()[1], col.lines=palette()[2], lwd=2, pch=1, cex=par("cex"), 
        line=c("quartiles", "robust", "none"),  
        labels = if(!is.null(names(x))) names(x) else seq(along=x),
        id.method = "y", 
        id.n =if(id.method[1]=="identify") Inf else 0,
        id.cex=1, id.col=palette()[1], grid=TRUE)



sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-apple-darwin13.1.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] parallel  stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] car_2.0-22 

解决方案

It does not seem to be adjustable. If you need such a modification, I suggest you to switch to the basic functions stats::qqnorm and stats::qqplot. If you desire a more attractive plot, you can switch to ggplot2. Look at http://docs.ggplot2.org/current/stat_qq.html

这篇关于汽车包装到R中的qqplot-如何插入x和y轴的比例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆