仅使用平均值和SD信息绘制R中的密度图
我想知道,当我们只有平均值(IE 34)和标准偏差(IE 4.5)时,我们是否可以在R(GGPLOT)中表示密度图。
I wonder to know if we can represent in R (ggplot) a density plot when we only have mean (i.e. 34) and standard deviation (i.e. 4.5).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用
stat_function
和dnorm
Using
stat_function
anddnorm
您可以使用
rnorm
为给定的均值
和sd
创建示例分布,然后ggplot:(v2.0.1)
You can use
rnorm
to create a sample distribution for a givenmean
andsd
, then ggplot:Created on 2022-05-25 by the reprex package (v2.0.1)