Description Usage Arguments See Also Examples
Assign a range of unique colors based on values.
1 | colorVal(x, n = 100, low = 4/6, high = 0/6)
|
x |
A numeric vector of values on which the colors are based. |
n |
A numeric scalar giving the number of unique colors in the palette, default 100. |
low |
A numeric scalar giving the hue in [0, 1] at which the color palette begins for low values, default 4/6 for blue. |
high |
A numeric scalar giving the hue in [0, 1] at which the color palette ends for high values, default 0 for red. |
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.