royal-statistical-society / datavisguide

Introductory guide to the art and science of data visualisation. Insights, advice, and examples (with code) to make data outputs more readable, accessible, and impactful.
https://royal-statistical-society.github.io/datavisguide/
Other
129 stars 20 forks source link

Forgot to adjust comment on loess line in plots Aspect ratio (minor) #24

Closed MMJansen closed 1 year ago

MMJansen commented 1 year ago

On the page https://royal-statistical-society.github.io/datavisguide/docs/principles.html there is a comment line followed by a geom_smooth:

# Adding linear OLS regression fit of y~x. gg <- gg + geom_smooth(method = "loess", color = "firebrick", se = FALSE)

Since the geom_smooth is not a linear OLS regression fit of y~x, I think you would want to adjust either the comment or the smooth. itself. Since the plot looks nice, it is probably the comment

brtarran commented 1 year ago

@andreas27 Are you able to respond to this issue, please?

andreas27 commented 1 year ago

@andreas27 Are you able to respond to this issue, please?

Fixed by adapting the comment to the code.