pal_palette | R Documentation |
This creates a list of colour vectors.
pal_palette(...)
is_palette(x)
as_palette(x)
... |
|
x |
|
Colours can be specified using either:
Hexadecimal strings of the form "#RRGGBB"
or "#RRGGBBAA"
Colour names from grDevices::colors()
Positive integers i
that index into grDevices::palette()
[i]
An S3 list of class palettes_palette
.
pal_colour()
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.