Returns the viridis color palette. A convenience wrapper around
grDevices::hcl.colors that mimics the viridis color scheme
without requiring extra packages.
Examples
cols <- viridis_colormap(10)
plot(1:10, pch = 19, col = cols, cex = 3)
Returns the viridis color palette. A convenience wrapper around
grDevices::hcl.colors that mimics the viridis color scheme
without requiring extra packages.
cols <- viridis_colormap(10)
plot(1:10, pch = 19, col = cols, cex = 3)