add_color: Add ICPI colors as Vector

Description Usage Arguments Examples

View source: R/add_color.R

Description

The ICPI color palettes can be imported as hex vectors into R. To do so, you can use the 'add_colors()' function to extract from Github.

There are four color palette. To simplify the input, you will just use the last word of the color palette name in lower case.

Palette Name | Input – | – Autumn Woods | "woods" Coast of Bohemia | "bohemia" Tidepools | "tidepools" By the Power of Grayscale | "grayscale"

Usage

1
add_color(palette = "woods")

Arguments

palette

which color palette to pull in (lower case, last word), Default = "woods"

Examples

1
2
3
4
5
6
## Not run: 
#pull in Autumn Woods hex colors as vector
  palette_woods <- add_color()
#pull in By the Power of Grayscale colors as vector
  palette_gray <- add_color("grayscale") 
## End(Not run)

ICPI/ICPIutilities documentation built on Aug. 30, 2021, 12:19 p.m.