Skip to contents

Discrete color scale based on OMNI colors

Usage

scale_color_omni_discrete(
  palette = c("orange-red-400", "golden-yellow-400", "olive-green-400", "teal-400",
    "plum-400", "periwinkle-400"),
  reverse = FALSE,
  ...
)

Arguments

palette

Character vector of OMNI colors.

reverse

Boolean, should palette be reversed?

...

Additional arguments passed to discrete_scale()

Examples

library(ggplot2)
ggplot(mpg, aes(x = displ, y = hwy, color = class)) +
    geom_point(size = 2.5) +
    scale_color_omni_discrete()