get_bwb_colours: Get Official BWB Colours

Description Usage Arguments Examples

View source: R/get_bwb_colours.R

Description

Get Official BWB Colours

Usage

1
2
3
4
5
6
get_bwb_colours(
  full_info = FALSE,
  simple = TRUE,
  conditions = NULL,
  six = FALSE
)

Arguments

full_info

if TRUE, a data frame with columns approx_name, red, green, blue, value is returned. The column approx_name contains the "approximate name" of the colour, as found by http://chir.ag/projects/name-that-color). By default, this argument is set to FALSE in which case a named vector containing only the "#rrggbb" strings is returned.

simple

if TRUE (the default) only the main colours with clear names (blue, green, yellow, orange, red) are returned

conditions

optional. Vector of (four) condition names (best to worst) to be used as the names of the returned vector of (four) colour codes. FALSE.

six

if TRUE six colours from dark green to dark red are returned. The default is FALSE.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Get a colour vector
get_bwb_colours()

# Plot these colours
plot_bwb_colours()

# Check the decimal numbers by setting full_info to TRUE
get_bwb_colours(full_info = TRUE)

# Get six colours
get_bwb_colours(six = TRUE)

KWB-R/sema.berlin.utils documentation built on Jan. 20, 2022, 12:02 a.m.