Skip to contents

Gradients through a palette's colors, for heatmaps and other continuous fills. theme_maison() already makes "seq_purple" the default; use these to reverse it, pick another ramp such as "seq_cobalt" or "quiet_sage", or pass scale arguments.

Usage

scale_fill_maison_c(palette = "seq_purple", reverse = FALSE, ...)

scale_colour_maison_c(palette = "seq_purple", reverse = FALSE, ...)

scale_color_maison_c(palette = "seq_purple", reverse = FALSE, ...)

Arguments

palette

A palette name; see maison_pal(). For a scale centered on a midpoint, use scale_fill_maison_div().

reverse

TRUE flips the order of the colors.

...

Passed to ggplot2::scale_fill_gradientn() or ggplot2::scale_colour_gradientn().

Value

A ggplot2 scale.

Examples

library(ggplot2)
ggplot(faithfuld, aes(waiting, eruptions, fill = density)) +
  geom_raster() +
  scale_fill_maison_c("seq_cobalt") +
  theme_maison(base_family = "sans", grid = "")