scale_picker: Color Scale Builder

scale_pickerR Documentation

Color Scale Builder

Description

Builds a color 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 color scale function.

palette

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

Value

A discrete or continuous scale.

Author(s)

N. Frerebeau

See Also

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

Examples

library(ggplot2)

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

khroma documentation built on Aug. 21, 2023, 5:11 p.m.