View source: R/palette_accessibility.R
viz_palette | R Documentation |
Visualise a Van Gogh palette with optional colorblind simulation
viz_palette(
name,
show_hex = TRUE,
colorblind = FALSE,
type = "discrete",
n = NULL
)
name |
Palette name |
show_hex |
Display hex codes (TRUE/FALSE) |
colorblind |
Show colorblind simulation (TRUE/FALSE) |
type |
Either "discrete" or "continuous" |
n |
Number of colors for continuous palettes |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.