fauna_colors | R Documentation |
Used to retrieve a single color or vector of colors from the Faunalytics color palette. In order, colors included are: green, amber (or orange), red, dark blue, light blue, blue. The following are not part of the Faunalytics color palette, but will be returned when requested: black, white, gray, light gray, dark gray. Variations of grays spelled with an "e" (e.g., dark grey) will also work.
fauna_colors(..., nameless = TRUE, cbf = FALSE)
... |
One of the following: color name(s) in quotes, a number of desired colors (no more than 6), or nothing. Quoted colors must be a part of the Faunalytics color palette. If no value is provided, this function will return the base color palette with names. |
nameless |
Return values without names when needed. TRUE by default. |
cbf |
The current Faunalytics color palette is not colorblind-friendly. Setting this argument to TRUE will override the default Faunalytics palette and replace it with a colorblind-friendly palette (viridis::turbo). FALSE by default. |
A named color hex code or named vector of color hex codes
fauna_colors("green")
fauna_colors("orange", "lightblue")
fauna_colors(4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.