Skip to contents

Builds a colour scale for ggplot2 or ggraph.

Usage

scale_colour_picker(..., palette = "YlOrBr")

scale_color_picker(..., palette = "YlOrBr")

scale_fill_picker(..., palette = "YlOrBr")

scale_edge_colour_picker(..., palette = "YlOrBr")

scale_edge_color_picker(..., palette = "YlOrBr")

scale_edge_fill_picker(..., palette = "YlOrBr")

Arguments

...

Extra parameters to be passed to the colour scale function.

palette

A character string giving the name of the colour scheme to be used (see info()).

Value

A discrete or continuous scale.

See also

Other colour palettes: colour(), info(), ramp()

Author

N. Frerebeau

Examples

library(ggplot2)

ggplot2::ggplot(mpg, ggplot2::aes(displ, hwy, colour = class)) +
  ggplot2::geom_point() +
  scale_colour_picker(palette = "okabeito")