ng_palette_d | R Documentation |
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").
ng_palette_d(name = "all", reverse = FALSE)
name |
Character name of the Nightingale (or viridis) colour palette. |
reverse |
Boolean indicating whether the palette should be reversed. |
Ilari Scheinin
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.