【问题标题】:car package to qqplot in R - how to insert the scale of x and y axis车包到R中的qqplot - 如何插入x和y轴的比例
【发布时间】:2014-12-07 21:44:21
【问题描述】:

答案不太具体,我正在使用这个名为 CAR for 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 

【问题讨论】:

    标签: r package


    【解决方案1】:

    似乎无法调整。如果你需要这样的修改,我建议你切换到基本功能stats::qqnormstats::qqplot。如果你想要更有吸引力的情节,你可以切换到ggplot2。看http://docs.ggplot2.org/current/stat_qq.html

    【讨论】:

      猜你喜欢
      • 2017-11-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-11
      • 2017-03-17
      • 1970-01-01
      • 2017-09-11
      相关资源
      最近更新 更多