Skip to contents

Returns a vector of colors forming a cohesive palette. Current palettes include:

  • Nominal: gruvbox

  • Diverging: gruvbox_div, modern

Usage

scale_colour_stem(palette = "modern", direction = 1, ...)

scale_color_stem(palette = "modern", direction = 1, ...)

scale_fill_stem(palette = "modern", direction = 1, ...)

Arguments

palette

Name of a palette to use.

direction

Orientation of the palette. If -1, the order of colors is reversed.

...

Additional arguments to be passed to ggplot2::discrete_scale()

Examples

ggplot2::ggplot(data = mtcars,
       mapping = ggplot2::aes(x = mpg, y = hp, color = as.factor(am))) +
       ggplot2::geom_point() +
       scale_color_stem()