如何逐个获取图片而不是一起显示?

时间:2016-06-11 05:15:23

标签: r plot fitdistrplus

当我输入代码plot(x.logis)时,输出是一起显示的四张图片,但我只是寻找其中一张。如何单独绘制它们?

这是我的代码:

x<-c(2800,3260,66.5,195,420,840,1380,469,260,50,209.8,370,27,420,157)
y<-log10(x)
# load fitdistrplus package for using fitdist function
library(fitdistrplus)
# fit logistic distribution using MLE method
x.logis <- fitdist(y, "logis", method="mle")
plot(x.logis)

这是输出的结果:

enter image description here

1 个答案:

答案 0 :(得分:2)

我猜你需要的是cdfcompdenscompppcompqqcomp

cdfcomp(x.logis, addlegend=FALSE)
denscomp(x.logis, addlegend=FALSE)
ppcomp(x.logis, addlegend=FALSE)
qqcomp(x.logis, addlegend=FALSE)