如何在R中的一个图中绘制两个不同的分布?
我想在一个图中绘制两个经验分布,以解释我的论文中的Kolmogorov-Smirnov测试。
一个具有样本步骤和一个连续分布的ECDF。
因此样本可能是:
x = c(12.4,11.8,12.9,12.6,13,12.5,12,12,12,13.2,12.8)
可以测试N〜(12,1)。 结果应该看起来像这样。
提前致谢 :)
I want to plot two empirical distributions in one Graph to explain the kolmogorov-smirnov Test in my paper.
One ecdf with steps from a sample and one continuous distribution.
So the sample could be:
x = c(12.4,11.8,12.9,12.6,13,12.5,12,11.5,13.2,12.8)
which could be tested for N~(12,1).
The result should look something like this .
Thanks in advance :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许您想要这样的东西:
输出:
Maybe you want something like this:
Output:
另一种极简主义的方式:
another minimalist way: