colourspace_palettes.Rd
These palette functions transform all-numeric colour_spec
vectors into
colours.
rgb_palette(x, min = 0, max = 1) hsv_palette(x, min = 0, max = 1) hsl_palette(x, min = 0, max = 1) hcl_palette(x, min = 0, max = 1) cmyk_palette(x, min = 0, max = 1) cmy_palette(x, min = 0, max = 1)
x | An |
---|---|
min, max | A |
A character
vector of the same length as the x
argument with
hexadecimal colour notation.
The conversion from colour_spec
vectors to colour is powered by
the farver::encode_colour()
function.
rgb_palette
: Red, Green and Blue colour space.
hsv_palette
: Hue, Saturation and Value colour space.
hsl_palette
: Hue, Saturation and Lightness colour space.
hcl_palette
: Hue, Chroma and Luminance colour space.
cmyk_palette
: Cyan, Magenta, Yellow and Key (black) colour
space.
cmy_palette
: Cyan, Magenta and Yellow colour space.
The colour_spec page for building colour space vectors. The scale_chromatic page for the scales wherein these palettes are used.
#> [1] "#FF0000"#> [1] "#FF0000"#> [1] "#FF0000"#> [1] "#FF0000"#> [1] "#FF0000"#> [1] "#FF0000"