Skip to contents

Applies a ggplot2 fill scale using one of the custom color palettes from charite_palettes

Usage

scale_fill_charite(palette = "primary", discrete = TRUE, reverse = FALSE, ...)

Arguments

palette

Character name of a palette in charite_palettes

discrete

Logical. Should the palette use discrete color steps?

reverse

Logical. Should the palette be reversed?

...

Additional arguments passed to ggplot2::discrete_scale()

Value

A ggplot2 scale object

Examples

library(ggplot2)
ggplot(mtcars, aes(factor(cyl), fill = factor(cyl))) +
  geom_bar() +
  scale_fill_charite("goldelse") +
  theme_charite()