0
我已经运行fitdist并存储在:更改线条颜色
params = fitdist(data, dist,method="mle")
results[[i]]<-params
我的问题是,当我使用:
plot(results[[1]])
我得到几个图形,包括qqplot 。我想改变qqplot线的颜色。我怎样才能做到这一点?
感谢
我已经运行fitdist并存储在:更改线条颜色
params = fitdist(data, dist,method="mle")
results[[i]]<-params
我的问题是,当我使用:
plot(results[[1]])
我得到几个图形,包括qqplot 。我想改变qqplot线的颜色。我怎样才能做到这一点?
感谢
如果创建一步与功能denscomp
,qqcomp
,cdfcomp
和ppcomp
也包含在fitdistrplus
包此图的步骤,你可以影响颜色:
# sample dataset:
data <- rnorm(1000, 0, 1)
# calculate fitting:
fitting <- fitdist(data, "norm")
# the original plot:
par(mfrow=c(1,1))
plot(fitting)
# create it graph by graph with different colors:
par(mfrow=c(2,2))
denscomp(fitting, datacol="gray", fitcol="blue")
qqcomp(fitting, fitpch = 20, fitcol="gray", line01col ="blue")
cdfcomp(fitting, datacol="gray", fitcol="blue")
ppcomp(fitting, fitpch = 20, fitcol="gray", line01col = "blue")
的'plot.fitdist函数可能包含一个解决方案的线索,但目前推测哪个包具有该函数(甚至是结果[[1])是否具有该类的“fitdist”类)。你应该找出关于如何制作一个“伟大的可重复的例子”并发表答案的帖子。 –
如果看起来这是'fitdistplus'软件包的一部分。那是对的吗?如果是这样,'plot.fitdist'调用'plotdist'。这个函数的帮助不提供任何颜色参数,'...'被描述为“传递给plotdist中使用的图形函数的更多图形参数”。没有看代码,我不确定这些代码在哪里,但是你尝试过'col = red'吗?可能有点显而易见! – seancarmody