Skip to contents

Apply sequential or diverging palettes to continuous/numeric data.

Usage

scale_color_ekio_c(palette = "blue", reverse = FALSE, ...)

scale_colour_ekio_c(palette = "blue", reverse = FALSE, ...)

scale_fill_ekio_c(palette = "blue", reverse = FALSE, ...)

Arguments

palette

Character. Palette name (default: "blue"). See list_ekio_palettes("sequential") and list_ekio_palettes("diverging") for options.

reverse

Logical. If TRUE, reverses the color order.

...

Additional arguments passed to ggplot2::scale_color_gradientn()

Value

A ggplot2 scale object

See also

scale_fill_ekio_c(), list_ekio_palettes()

Examples

library(ggplot2)
ggplot(mtcars, aes(wt, mpg, color = hp)) +
  geom_point(size = 3) +
  scale_color_ekio_c()


ggplot(mtcars, aes(wt, mpg, color = hp)) +
  geom_point(size = 3) +
  scale_color_ekio_c("stone")