pal_palette {palettes} | R Documentation |
Colour palettes
Description
This creates a list of colour vectors.
Usage
pal_palette(...)
is_palette(x)
as_palette(x)
Arguments
... |
|
x |
|
Details
Colours can be specified using either:
Hexadecimal strings of the form
"#RRGGBB"
or"#RRGGBBAA"
Colour names from
grDevices::colors()
Positive integers
i
that index intogrDevices::palette()
[i]
Value
An S3 list of class palettes_palette
.
See Also
Examples
pal_palette(
Egypt = c("#DD5129", "#0F7BA2", "#43B284", "#FAB255"),
Java = c("#663171", "#CF3A36", "#EA7428", "#E2998A", "#0C7156")
)
x <- list(
Egypt = c("#DD5129", "#0F7BA2", "#43B284", "#FAB255"),
Java = c("#663171", "#CF3A36", "#EA7428", "#E2998A", "#0C7156")
)
as_palette(x)
[Package palettes version 0.2.1 Index]