Skip to contents

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 in rgb 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"