Skip to contents

Binned 'Flexoki' Color Scales for ggplot2

Usage

scale_color_flexoki_b(palette = "red", ..., reverse = FALSE)

scale_fill_flexoki_b(palette = "red", ..., reverse = FALSE)

scale_colour_flexoki_b(palette = "red", ..., reverse = FALSE)

Arguments

palette

palette from names(flexoki) to use

...

arguments passed on to ggplot2::discrete_scale()

reverse

Should the vector be reversed? Default is FALSE.

Value

A ggplot2::Scale

Examples

ggplot2::faithfuld |>
  ggplot2::ggplot() +
  ggplot2::geom_tile(ggplot2::aes(waiting, eruptions, fill = density)) +
  scale_fill_flexoki_b(palette = 'red')