如何在同一图中绘制两条累积分布曲线作为线型 [英] How can I plot two cumulative distributions curve as line type in same plot

查看:146
本文介绍了如何在同一图中绘制两条累积分布曲线作为线型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在经验累积分布曲线上绘制威布尔分布的累积分布曲线.

I want to plot cumulative distributions curve for Weibull distribution over empirical cumulative distribution curve.

我已经尝试过几次了,但是并没有达到我想要的方式.这是命令:

I have tried with this several times but it does not serve the way I want. Here is the command:

x<-(SIZEDIST$AVG.µm.)
x
plot(x,pweibull(x,shape=1.120662,scale=18.496778),type="l",col=4)
plot(ecdf(x),add=TRUE)

推荐答案

使用lines代替plot

plot(x,pweibull(x,shape=1.120662,scale=18.496778),type="l",col=4)
lines(ecdf(x),col='red')

这篇关于如何在同一图中绘制两条累积分布曲线作为线型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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