Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppress geom_smooth() using formula 'y ~ x' messages in ggscatter() #488

Closed
dchiu911 opened this issue Aug 26, 2022 · 1 comment
Closed

Comments

@dchiu911
Copy link

dchiu911 commented Aug 26, 2022

I think we can suppress the persistent

 `geom_smooth()` using formula 'y ~ x'

messages (from ggscatter() for e.g.) by adding the following after this line:

option[["formula"]] <- y ~ x
@dchiu911 dchiu911 changed the title Suppress geom_smooth() using formula 'y ~ x' messages Suppress geom_smooth() using formula 'y ~ x' messages in ggscatter() Aug 26, 2022
@aphalo
Copy link

aphalo commented Aug 28, 2022

@dchiu911 The behaviour of geom_smooth() depends on the number of observations. Probably it would be best to set method = lm to avoid it switching to using splines. Anyway, there have been no commits at this repo for 2 years and no answers from the repo owner to issues raised or pull requests also for a very long time. I think the effort of learning the Grammar of Graphics and using 'ggplot2' and its extenssions through this grammar avoids many of the headaches caused by "canned" plotting functions like those in 'ggpubr'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants