These functions mix colour vectors with math functions.
Arguments
- ...
Colour vectors of class
palettes_colour
.- na.rm
Whether to include missing values. Either
TRUE
orFALSE
.- x
An object of class
palettes_colour
.
Value
These functions return colour vectors of class
palettes_colour
:
Examples
x <- pal_colour(c("red", "blue"))
sum(x)
#> <palettes_colour[1]>
#> • #FF00FF
x <- pal_colour(c("red", "blue", "yellow"))
cumsum(x)
#> <palettes_colour[3]>
#> • #FF0000
#> • #FF00FF
#> • #FFFFFF