Manually defined palettes based on BdE publications. Each palette contains at most six colors.
Usage
bde_tidy_palettes(
n = 6,
palette = c("bde_vivid_pal", "bde_rose_pal", "bde_qual_pal"),
alpha = NULL,
rev = FALSE
)Arguments
- n
The number of colors (
>= 1) to return.- palette
A valid palette name.
- alpha
An alpha transparency level in the range
[0, 1](0means transparent and1means opaque). If missing (i.e.,alpha = NULL), the function does not append opacity codes ("FF") to the individual color hex codes. Seeggplot2::alpha().- rev
Logical indicating whether to reverse the color order.
See also
Other bde_plot:
scales_bde,
theme_tidybde()
Examples
# Show the BdE vivid palette.
scales::show_col(bde_tidy_palettes(palette = "bde_vivid_pal"),
labels = FALSE
)
# Show the BdE rose palette.
scales::show_col(bde_tidy_palettes(palette = "bde_rose_pal"),
labels = FALSE
)
# Show the BdE qualitative palette.
scales::show_col(bde_tidy_palettes(palette = "bde_qual_pal"),
labels = FALSE
)
