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

Re: [R] geom_smooth

2023-08-12 Thread Thomas Subia via R-help
Colleagues, Your suggestions are elegant and greatly appreciated. Thomas Subia On Friday, August 11, 2023 at 11:08:42 PM PDT, Berwin A Turlach wrote: G'day Thomas, On Sat, 12 Aug 2023 04:17:42 + (UTC) Thomas Subia via R-help wrote: > Here is my reproducible code for a graph u

Re: [R] geom_smooth

2023-08-11 Thread CALUM POLWART
+ geom_ribbon(stat = "smooth", se = TRUE, alpha = 0, # or, use fill = NA colour = "black", linetype = "dotted") Does that work? On Sat, 12 Aug 2023, 06:12 Rui Barradas, wrote: > Às 05:17 de 12/08/2023, Thomas Subia via R-help escreveu: >

Re: [R] geom_smooth

2023-08-11 Thread Berwin A Turlach
G'day Thomas, On Sat, 12 Aug 2023 04:17:42 + (UTC) Thomas Subia via R-help wrote: > Here is my reproducible code for a graph using geom_smooth The call "library(tidyverse)" was missing. :) > I'd like to add a black boundary around the shaded area. I suspect > this can be done with geom_rib

Re: [R] geom_smooth

2023-08-11 Thread Rui Barradas
Às 05:17 de 12/08/2023, Thomas Subia via R-help escreveu: Colleagues, Here is my reproducible code for a graph using geom_smooth set.seed(55) scatter_data <- tibble(x_var = runif(100, min = 0, max = 25)    ,y_var = log2(x_var) + rnorm(100)) library(ggplot2) library(cowplot)

[R] geom_smooth

2023-08-11 Thread Thomas Subia via R-help
Colleagues, Here is my reproducible code for a graph using geom_smooth set.seed(55) scatter_data <- tibble(x_var = runif(100, min = 0, max = 25)    ,y_var = log2(x_var) + rnorm(100)) library(ggplot2) library(cowplot) ggplot(scatter_data,aes(x=x_var,y=y_var))+   geom_point()+

Re: [R] Geom_smooth

2017-09-07 Thread David Winsemius
> On Jul 20, 2016, at 10:01 AM, Tom Subia wrote: > > Default level = 0.95. > Does this mean +/- 0.025 from estimate? > > [[alternative HTML version deleted]] I would have guessed that it meant something along the lines of localized (or one might say "loess-ized") mean +/- 2* similarly

Re: [R] Geom_smooth

2016-07-20 Thread Jeff Newmiller
No, it refers to confidence level. Refer to your training in statistics for that definition. -- Sent from my phone. Please excuse my brevity. On July 20, 2016 10:01:44 AM PDT, Tom Subia wrote: >Default level = 0.95. >Does this mean +/- 0.025 from estimate? > > [[alternative HTML version d

Re: [R] Geom_smooth

2016-07-20 Thread ruipbarradas
No, it means precisely the opposite. Google "confidence interval", please. Rui Barradas   Citando Tom Subia : > Default level = 0.95. > Does this mean +/- 0.025 from estimate? > >         [[alternative HTML version deleted]] > > __ > R-help@r-project.o

Re: [R] Geom_smooth

2016-07-20 Thread John Kane
. John Kane Kingston ON Canada > -Original Message- > From: tgs...@gmail.com > Sent: Wed, 20 Jul 2016 10:01:44 -0700 > To: r-help@r-project.org > Subject: [R] Geom_smooth > > Default level = 0.95. > Does this mean +/- 0.025 from estimate? > > [[al

[R] Geom_smooth

2016-07-20 Thread Tom Subia
Default level = 0.95. Does this mean +/- 0.025 from estimate? [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide