powered by
A function to retreive a vector of hex codes for a numeric (or ordererd) variable.
pal_viridis_mix(n)
A character vector of hex codes.
The number of colours (excluding an NA colour).
scales::show_col(pal_viridis_mix(9))
Run the code above in your browser using DataLab