[英]create a line graph using ggplot2 of the change in mean overtime with 95% CI
也許像這樣?
ggplot(df, aes(x = time, y = mean, group = group)) +
geom_line(aes(lty = as.character(group)),
position = position_dodge(width = 0.1)) +
geom_errorbar(aes(ymax = upper, ymin = lower), width = 0.1,
position = position_dodge(width = 0.1)) +
geom_point(aes(shape = as.character(group)),
position = position_dodge(width = 0.1)) +
guides(lty = "none", shape = "none")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.