plot mixed effects model in ggplot
问题 I am new with mixed effect models and I need your help please. I have plotted the below graph in ggplot: ggplot(tempEf,aes(TRTYEAR,CO2effect,group=Myc,col=Myc)) + facet_grid(~N) + geom_smooth(method="lm",se=T,size=1) + geom_point(alpha = 0.3) + geom_hline(yintercept=0, linetype="dashed") + theme_bw() However, I would like to represent a mixed effects model instead of lm in geom_smooth , so I can include SITE as a random effect. The model would be the following: library(lme4) tempEf$TRTYEAR <-