Skip to content

Could a function to reset all geom defaults back to the initial defaults be provided? #5975

Closed
@davidhodge931

Description

@davidhodge931

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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions