get_icae_colors: Get ICAE colors

View source: R/color_palette.R

get_icae_colorsR Documentation

Get ICAE colors

Description

Returns a vector of colors of a chose ICAE-color palette.

Usage

get_icae_colors(
  n = 1,
  col_name = NULL,
  palette_used = "main",
  reverse_pal = FALSE,
  ...
)

Arguments

n

The number of different colors requested.

col_name

The name of a color as defined in icae_public_cols. If 'all' returns all ICAE colors.

palette_used

The type of palette to be returned. Currently, the following palettes are supported: main, cool, hot, mixed, and grey.

reverse_pal

If TRUE reverses the resulting color scheme.

Details

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".

Value

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.

See Also

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()

Examples

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")


graebnerc/icaeDesign documentation built on Feb. 29, 2024, 5:02 p.m.