Read in continuous values between xmin and xmax and return colours associated with these values, taken from a smoothly varying scale.
1 2 | smoothCols(x, xmin = min(x, na.rm = T), xmax = max(x, na.rm = T),
res = 1000, rawCols = NULL)
|
x |
values from which to obtain colours. |
xmin |
minimum range of x. |
xmax |
maximum range of x. |
res |
number of colours in palette. |
rawCols |
colours that make up the palette. Leave as NULL to use default values, taken from tim.colors(). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.