View source: R/colors-and-helpers.R
rgb_sciensano_c | R Documentation |
Sciensano Continuous Color Palettes
rgb_sciensano_c( palette = c("red", "green", "red-yellow-green"), n = 10, alpha = 1, reverse = FALSE )
palette |
Palette type. There are 3 available options:
|
n |
Number of individual colors to be generated. |
alpha |
Transparency level, a real number in (0, 1].
See |
reverse |
Logical. Should the order of the colors be reversed? |
## Not run: library("scales") show_col(rgb_sciensano_c("red")(10)) show_col(rgb_sciensano_c("red", n = 30, alpha = 0.6, reverse = TRUE)(30)) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.