You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if there could be a function to reset all geom defaults back to the initial defaults? Otherwise, you have to know what the defaults are, or restart once you update something.
Something simple like below would be super helpful.
reset_geom_defaults <- function() {
ggplot2::update_geom_defaults("area", NULL)
ggplot2::update_geom_defaults("bar", NULL)
ggplot2::update_geom_defaults("boxplot", NULL)
ggplot2::update_geom_defaults("col", NULL)
... # etc with all geom's there
}
Maybe this could be something for Tidy Dev Day, as hopefully pretty simple??
An idea (maybe for the future) is that it could also have an argument that would allow users to specify only certain geoms to reset
The text was updated successfully, but these errors were encountered:
I can see value in a grand reset of the default aesthetics. I feel that the geoms shouldn't be hardcoded like in the example you give, which makes it somewhat more complicated.
you have to know what the defaults are
This isn't strictly true, but you have to know which geoms one should reset.
However, I don't think the update_geom_defaults() will be the 'preferred way' of interacting with defaults after #5833 gets merged.
Do you forsee that update_geom_defaults will be continued to be supported?
I find it super useful
davidhodge931
changed the title
Could a function to reset all geom defaults back to the initial defaults?
Could a function to reset all geom defaults back to the initial defaults be provided?
Jul 4, 2024
Thanks for the continual ggplot2 updates!
I was wondering if there could be a function to reset all geom defaults back to the initial defaults? Otherwise, you have to know what the defaults are, or restart once you update something.
Something simple like below would be super helpful.
Maybe this could be something for Tidy Dev Day, as hopefully pretty simple??
An idea (maybe for the future) is that it could also have an argument that would allow users to specify only certain geoms to reset
The text was updated successfully, but these errors were encountered: