powered by
Viridis palette
pal_viridis(alpha = 1, begin = 0, end = 1, direction = 1, option = "D")viridis_pal(alpha = 1, begin = 0, end = 1, direction = 1, option = "D")
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")
"magma"
"A"
"inferno" (or "B")
"inferno"
"B"
"plasma" (or "C")
"plasma"
"C"
"viridis" (or "D")
"viridis"
"D"
"cividis" (or "E")
"cividis"
"E"
"rocket" (or "F")
"rocket"
"F"
"mako" (or "G")
"mako"
"G"
"turbo" (or "H")
"turbo"
"H"
https://bids.github.io/colormap/
show_col(pal_viridis()(10)) show_col(pal_viridis(direction = -1)(6)) show_col(pal_viridis(begin = 0.2, end = 0.8)(4)) show_col(pal_viridis(option = "plasma")(6))
Run the code above in your browser using DataLab