我正在尝试用平均值线如下所示的晶须创建箱形图。[两个不同模型(166个值)的平均现金流量与真实分布的均值(1个值)比较
如何在r中这样创建?
答案 0 :(得分:0)
以下几行解决了我的问题: boxplot(mean.DCL,mean.ODP,mean.Mack,col =(c(“ gold”,“ green”,“ blue”)),main =“过程平均储备直方图”,xlab =“ Reserves”,名称= c(“ DCL”,“ ODP”,“ Mack”),ylim = c(2200000,3500000),by = 2000000) 行(x = c(0:S),y = rep(mean.res,S + 1),col =“ red”,lty = 2,lwd = 2)
the mean is the dotted line through the other values of all models considered