View source: R/color_palette.R
get_icae_colors | R Documentation |
Returns a vector of colors of a chose ICAE-color palette.
get_icae_colors(
n = 1,
col_name = NULL,
palette_used = "main",
reverse_pal = FALSE,
...
)
n |
The number of different colors requested. |
col_name |
The name of a color as defined in
|
palette_used |
The type of palette to be returned. Currently, the
following palettes are supported: |
reverse_pal |
If TRUE reverses the resulting color scheme. |
This function takes one of the palettes defined in
icae_public_pal
and returnes a vector with the requested
number of colors. To return all base colors of the ICAE color scheme
call the function with col_name="all"
.
A vector of hex codes with colors from palette
(if col_name
is FALSE
), a named vector of hex codes from
the colors specified in col_name
otherwise.
icae_public_pal
for the function that assembles the
colors into consistent palettes and scale_color_icae
for the
application to ggplot2
objects.
Other color scheme functions:
coloring
,
get_euf_colors()
get_icae_colors(3)
get_icae_colors(2, palette_used = "mixed", reverse_pal = TRUE)
get_icae_colors("dark blue")
get_icae_colors(c("dark blue", "sand"))
get_icae_colors(col_name="all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.