viridis_pal {viridis} | R Documentation |
Viridis palette (discrete)
viridis_pal(alpha = 1, begin = 0, end = 1, option = "D")
alpha |
pass through parameter to |
begin |
The (corrected) hue in [0,1] at which the viridis colormap begins. |
end |
The (corrected) hue in [0,1] at which the viridis colormap ends. |
option |
A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), and "viridis" (or "D", the default option). |
Here is an example of a 20-element palette:
See viridis for more information on the color scale.
Bob Rudis bob@rudis.net
library(scales) show_col(viridis_pal()(10))