Skip to contents

Apply qualitative palettes to discrete/categorical data.

Usage

scale_color_ekio_d(palette = "full", reverse = FALSE, ...)

scale_colour_ekio_d(palette = "full", reverse = FALSE, ...)

scale_fill_ekio_d(palette = "full", reverse = FALSE, ...)

Arguments

palette

Character. Palette name (default: "full"). See ekio_pal() for options.

reverse

Logical. If TRUE, reverses the palette order.

...

Additional arguments passed to ggplot2::discrete_scale()

Value

A ggplot2 scale object

See also

ekio_pal(), scale_fill_ekio_d()

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg, color = factor(cyl))) +
  geom_point(size = 3) +
  scale_color_ekio_d()