I am making a time series plot with ggplot. I have the mean and the variance of the 5 variables of interest. I can plot the variance with error bars, but when I try to do it with geom_smooth()/stat_smooth() it doesn't work well.
ggplot(data = df4, aes(x = times, y = value, colour = variable)) + geom_line()+
geom_errorbar(aes(ymin = value-var, ymax = value+var))+
geom_errorbarh(aes(xmin = value-var, xmax = value+var))+ geom_smooth()