Skip to contents

A discrete color scale using besthr palettes.

Usage

scale_color_besthr(palette = "default", ...)

scale_colour_besthr(palette = "default", ...)

Arguments

palette

Character string specifying the palette (see besthr_palette)

...

Additional arguments passed to discrete_scale

Value

A ggplot2 discrete color scale

Examples

library(ggplot2)
ggplot(mtcars, aes(mpg, wt, color = factor(cyl))) +
  geom_point() +
  scale_color_besthr("okabe_ito")