View source: R/bde-tidy-palettes.R
| bde_tidy_palettes | R Documentation |
Manually defined palettes based on BdE publications. Each palette contains at most six colors.
bde_tidy_palettes(
n = 6,
palette = c("bde_vivid_pal", "bde_rose_pal", "bde_qual_pal"),
alpha = NULL,
rev = FALSE
)
n |
The number of colors to return. Must be at least |
palette |
A palette name: |
alpha |
Alpha transparency level in the range |
rev |
Logical. If |
A character vector of hex color codes.
Plotting functions:
scales_bde,
theme_tidybde()
# 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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.