【发布时间】:2019-09-21 07:27:07
【问题描述】:
我有这些数据表示变量 Q1 随时间变化的值。 时间不是用日期来表示的,它是用一个事件后的天数来表示的。
https://www.mediafire.com/file/yfzbx67yivvvkgv/dat.xlsx/file
我正在尝试绘制 Q1along 的平均值,就像这里一样
Plotting average of multiple variables in time-series using ggplot
我正在使用此代码
library(Hmisc)
ggplot(dat,aes(x=days,y=Q1,colour=type,group=type)) +
stat_summary(fun.data = "mean_cl_boot", geom = "smooth")
【问题讨论】: