ng_palette: Nightingale's colour palettes

ng_palette_dR Documentation

Nightingale's colour palettes

Description

ng_palette_d() and ng_palette_c() (respectively for discrete and continuous palettes) return functions that take an integer argument (the required number of colours) and return a character vector of colours' hex codes. In addition, the functions also recognize the viridis palettes: "magma" (or "A"), "inferno" ("B"), "plasma" ("C"), "viridis" ("D"), or "cividis" ("D").

Usage

ng_palette_d(name = "all", reverse = FALSE)

Arguments

name

Character name of the Nightingale (or viridis) colour palette.

reverse

Boolean indicating whether the palette should be reversed.

Author(s)

Ilari Scheinin


JMPivette/covidDashUtils documentation built on July 13, 2024, 11:08 a.m.