Skip to contents

Sciensano Continuous Color Palettes

Usage

pal_sciensano_c(
  palette = c("red", "green", "red-yellow-green"),
  n = 10,
  alpha = 1,
  reverse = FALSE
)

Arguments

palette

Palette type. There are 3 available options:

  • "red"

  • "green"

  • "red-yellow-green"

n

Number of individual colors to be generated.

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("red-yellow-green")(10))
#> Error in show_col(pal_sciensano("red-yellow-green")(10)): could not find function "show_col"
show_col(pal_sciensano("red-yellow-green", n = 30, alpha = 0.6, reverse = TRUE)(30))
#> Error in show_col(pal_sciensano("red-yellow-green", n = 30, alpha = 0.6,     reverse = TRUE)(30)): could not find function "show_col"