Modify geom/stat aesthetic defaults for future plots
Arguments
- new
Named list of aesthetics.
- stat, geom
Name of geom/stat to modify (like
"point"
or"bin"
), or a Geom/Stat object (likeGeomPoint
orStatBin
).
Examples
update_geom_defaults("point", list(colour = "darkblue"))
ggplot(mtcars, aes(mpg, wt)) + geom_point()
update_geom_defaults("point", list(colour = "black"))