【发布时间】:2020-05-28 10:34:20
【问题描述】:
我正在用 mean_cl_boot 绘制一些 X 值,置信区间很大
如何导出每个组中fun.y = mean 和fun.data = mean_cl_boot 的值的文本?
我在mean_cl_boot 中有一个值区间,我想绘制它们并导出它们。
ggplot(iris, aes(x = Species, y = Petal.Length)) +
geom_jitter(width = 0.5) + stat_summary(fun.y = mean, geom = "point", color = "red") +
stat_summary(fun.data = mean_cl_boot, fun.args=(conf.int=0.9999), geom = "errorbar", width = 0.4)
我必须绘制平均 (fun.y = mean) 值,其中:
stat_summary(fun.y=mean, geom="text", aes(label=sprintf("%1.1f", ..y..)),size=3, show.legend=FALSE
但我不能和mean_cl_boot 一样。
【问题讨论】:
标签: r ggplot2 tidyverse mean confidence-interval