【发布时间】:2018-05-10 18:34:37
【问题描述】:
我喜欢将 ggplot stat_summary 函数与 geom = "histogram" 或 geom = "kde" 之类的东西一起使用。这在带有 kind="kde" 的 python 中很有用,但我无法在 r 中找到一个好的解决方法。谢谢。
library(ggplot2)
data("iris")
ggplot(iris, aes(iris$Species, iris$Sepal.Length))+
stat_summary(fun.y= " mean", geom = "bar")
【问题讨论】:
标签: r ggplot2 kernel-density