Skip to contents

Discrete 'Flexoki' Color Scales for ggplot2

Usage

scale_color_flexoki_d(palette = "dark", which = NULL, ..., reverse = FALSE)

scale_fill_flexoki_d(palette = "dark", which = NULL, ..., reverse = FALSE)

scale_colour_flexoki_d(palette = "dark", which = NULL, ..., reverse = FALSE)

Arguments

palette

palette from names(flexoki) to use

which

numeric indices of colors to use. NULL by default.

...

arguments passed on to ggplot2::discrete_scale()

reverse

Should the vector be reversed? Default is FALSE.

Value

A ggplot2::Scale

Examples

ggplot2::mpg |>
  ggplot2::ggplot() +
  ggplot2::geom_point(ggplot2::aes(displ, hwy, colour = class)) +
  scale_color_flexoki_d(palette = 'dark')


ggplot2::mpg |>
  ggplot2::ggplot() +
  ggplot2::geom_point(ggplot2::aes(displ, hwy, fill = class),
    pch = 23, color = 'transparent'
  ) +
  scale_fill_flexoki_d(palette = 'light')