View source: R/color_palette_euf.R
get_euf_colors | R Documentation |
Returns a vector of colors of a chose EUF-color palette.
get_euf_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
euf_public_pal
and returns a vector with the requested
number of colors. To return all base colors of the EUF 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.
euf_public_pal
for the function that assembles the
colors into consistent palettes and scale_color_euf
for the
application to ggplot2
objects. See icae_public_pal
and scale_color_euf
for the ICAE pendants.
Other color scheme functions:
coloring
,
get_icae_colors()
get_euf_colors(3)
get_euf_colors(2, palette_used = "mixed", reverse_pal = TRUE)
get_euf_colors("lightblue")
get_euf_colors(c("blue", "red"))
get_euf_colors(col_name="all")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.