viridis_palettes | R Documentation |
Colourblind accessible palettes that are perceptually uniform in both colour and black-and-white.
viridis_palettes
viridis_palettes
An object of class palettes_palette
with 8
colour palettes. All colours in each palette are distinguishable with
deuteranopia, protanopia, and tritanopia. Use names(viridis_palettes)
to
return all palette names.
https://github.com/sjmgarnier/viridisLite
pal_palette()
, pal_colour()
, viridisLite::viridis()
# Get all palettes by name.
names(viridis_palettes)
# Plot all palettes.
plot(viridis_palettes, n = 256)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.