num2col | R Documentation |
convert numeric values to color range:
num2col(x, limits, q, pal, colf = viridis::viridis, n = 100)
x |
a numeric vector |
limits |
optional data limits for min/max color, every x lower/higher will get the extreme colors |
q |
auto-select limits by these two quantiles (argument
|
pal |
color palette, alternatively |
colf |
color palette function |
n |
number of different colors |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.