Skip to content

Could palettes specific to geoms be set in the theme? #6549

Closed as not planned
@davidhodge931

Description

@davidhodge931

Wondering if there is any possibility to set colour/fill palettes in the theme on a geom basis?

 ggplot2::update_theme(
  histogram.palette.colour.discrete = c("darkred", "darkblue", "darkgreen"),
  histogram.palette.fill.discrete = c("red", "blue", "green"),
  line.palette.colour.discrete = c("red", "blue", "green"),
 )

Apologies if this has already been raised somewhere - I had a search, but couldn't find anything

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