consider making geom_smooth() formula = "auto" the default #3205
Labels
feature
a feature request or enhancement
good first issue ❤️
good issue for first-time contributors
layers 📈
wip
work in progress
In observing the code of my students, I can see that many have mental models of
geom_smooth()
that lead them to use it incorrectly. Their mental model is to use themethod
argument to specify the type of smoothing, and this is reasonable. It works fine formethod = "lm"
andmethod = "loess"
but notmethod = "gam"
, since the defaultformula
works well with"lm"
and"loess"
but not"gam"
. Why not have the defaultformula
be"auto"
, which would look at the specifiedmethod
and usey ~ x
for"lm"
and"loess"
andy ~ s(x, bs = "cs")
for"gam"
.I realize that the formula used by
method = "auto"
for"gam"
is explained in the third paragraph of the help entry for themethod
argument, but in practice this is not connecting with a large proportion of the users I'm seeing.@skaltman
The text was updated successfully, but these errors were encountered: