Skip to contents

theme_maison() already makes the categorical palette the default for discrete fills and colors. Use these scales when a chart needs a different palette, a reversed one, or scale arguments such as labels or limits.

Usage

scale_fill_maison_d(palette = "categorical", reverse = FALSE, ...)

scale_colour_maison_d(palette = "categorical", reverse = FALSE, ...)

scale_color_maison_d(palette = "categorical", reverse = FALSE, ...)

Arguments

palette

A palette name; see maison_pal().

reverse

TRUE flips the order of the colors.

...

Passed to ggplot2::discrete_scale().

Value

A ggplot2 scale.

See also

scale_fill_maison_likert() for agreement scales.

Examples

library(ggplot2)
ggplot(mpg, aes(class, fill = drv)) +
  geom_bar() +
  scale_fill_maison_d(reverse = TRUE) +
  theme_maison(base_family = "sans")