powered by
Viridis palette
viridis_pal(alpha = 1, begin = 0, end = 1, direction = 1, option = "D")
The alpha transparency, a number in [0,1], see argument alpha in hsv.
hsv
The (corrected) hue in [0,1] at which the color map begins and ends.
[0,1]
Sets the order of colors in the scale. If 1, the default, colors are ordered from darkest to lightest. If -1, the order of colors is reversed.
A character string indicating the color map option to use. Eight options are available:
"magma" (or "A")
"inferno" (or "B")
"plasma" (or "C")
"viridis" (or "D")
"cividis" (or "E")
"rocket" (or "F")
"mako" (or "G")
"turbo" (or "H")
https://bids.github.io/colormap/
show_col(viridis_pal()(10)) show_col(viridis_pal(direction = -1)(6)) show_col(viridis_pal(begin = 0.2, end = 0.8)(4)) show_col(viridis_pal(option = "plasma")(6))
Run the code above in your browser using DataLab