Re: [R] geom_smooth with sd

2024-08-11 Thread SIBYLLE STÖCKLI via R-help
t: Sunday, August 11, 2024 6:30 PM To: sibylle.stoec...@gmx.ch Cc: R-help@r-project.org Subject: Re: [R] geom_smooth with sd Hi! This is probably completely off base, but your ymin and y max setup lines are different. One uses sqrt(y), while the second uses sqrt(length(y)). Could that p

Re: [R] geom_smooth with sd

2024-08-11 Thread Erin Hodgess
Hi! This is probably completely off base, but your ymin and y max setup lines are different. One uses sqrt(y), while the second uses sqrt(length(y)). Could that play a part, please? Thank you Erin Hodgess, PhD mailto: erinm.hodg...@gmail.com On Sun, Aug 11, 2024 at 10:10 AM SIBYLLE STÖCKLI

[R] geom_smooth with sd

2024-08-11 Thread SIBYLLE STÖCKLI via R-help
Dear community Using after_stat() I was able to visualise ggplot with standard deviations instead of a confidence interval as seen in the R help. p1<-ggplot(data = MS1, aes(x= Jahr, y= QI_A,color=Bio, linetype=Bio)) + geom_smooth(aes(fill=Bio, ymax=after_stat(y+se*sqrt(len