Sciensano Discrete Color Palettes
pal_sciensano.Rd
Color palettes inspired by the housestyle of Sciensano https://intranet.sciensano.be/nl/DienstenAlgemeenDirecteur/Communicatie/Pages/Huisstijl-en-templates.aspx.
Usage
pal_sciensano(
palette = c("default", "contrast", "GnRd", "PuBl", "region"),
alpha = 1,
reverse = FALSE
)
Arguments
- palette
Palette type. Currently there are four available general options:
"default", "contrast", "GnRd", "PuBl"
containing all or a subset of the palette (The default package is a 14-color palette inspired by Sciensano).- alpha
Transparency level, a real number in (0, 1]. See
alpha
inrgb
for details.- reverse
Logical. Should the order of the colors be reversed?
Examples
if (FALSE) library("scales")
show_col(pal_sciensano("default")(14))
#> Error in show_col(pal_sciensano("default")(14)): could not find function "show_col"
show_col(pal_sciensano("default", alpha = 0.6)(14))
#> Error in show_col(pal_sciensano("default", alpha = 0.6)(14)): could not find function "show_col"