Closed davidhodge931 closed 5 months ago
It needs the parameter se = TRUE
to show the standard error, i.e.:
penguins |>
ggplot(aes(x = flipper_length_mm,
y = body_mass_g,)) +
layer(
geom = ggplot2::GeomSmooth,
stat = "smooth",
position = ggplot2::position_identity(),
params = list(se = TRUE)
)
Is it possible that GeomSmooth
could default to se = TRUE
to match what we see in geom_smooth
?
I'm not sure that would be wise, as I think there is the possibility that geom_smooth()
may be uses with a stat that isn't StatSmooth
and doesn't produce the ymin/ymax
and xmin/ymax
variables. However, I see no reason why the default couldn't be NULL and gets resolved based on whether those columns are present in the data.
Created on 2023-12-08 with reprex v2.0.2