Skip to contents

Colourblind accessible palettes that are perceptually uniform in both colour and black-and-white.

Usage

viridis_palettes

Format

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.

Author

Simon Garnier

Examples

# Get all palettes by name.
names(viridis_palettes)
#> [1] "viridis" "magma"   "inferno" "plasma"  "cividis" "rocket"  "mako"   
#> [8] "turbo"  

# Plot all palettes.
plot(viridis_palettes, n = 256)