ColorScale(palette = character(0), name = NULL, type = character(0))

Arguments

palette

Character vector of hex colors (two, for a gradient).

name

Optional legend title.

type

"discrete" or "continuous".

Value

An S7 object of class ColorScale; usually built by scale_color_manual() or scale_color_gradient().