Color palettes based on the color scheme of rOpenGov
Usage
rog_orange_pal(n = 4, alpha = 0.9, rev = FALSE)
rog_dark_pal(n = 4, alpha = 0.9, rev = FALSE)
rog_gradient_pal(n = 4, alpha = 0.9, rev = FALSE)
rog_qualitative_pal(n = 6, alpha = 0.9, rev = FALSE)
Arguments
- n
the number of colors (\(\ge 1\)) to be in the palette.
- alpha
an alpha-transparency level in the range [0,1] (0 means transparent and 1 means opaque), see argument
alpha
inhsv
andhcl
, respectively.
Amissing
, i.e., not explicitly specifiedalpha
is equivalent toalpha = NULL
, which does not add opacity codes ("FF"
) to the individual color hex codes.- rev
logical indicating whether the ordering of the colors should be reversed.
See also
Other extras:
rog_add_template_pkgdown()
,
rog_badge_ropengov()
,
rog_load_font()
,
rog_logo()