Description Usage Arguments Value Author(s) See Also Examples
View source: R/string.to.color.R
Automatically convert a vector of numbers into a color for easy plotting
1 | number.to.colors(value, colors = c("red", "blue"), num = 100)
|
value |
a vector of numbers. |
colors |
a vector of two or more colors representing the inflection points of the gradients, passed to |
num |
The number of unique intervals for colors. Chose larger numbers for finer gradients (higher resolution). |
a vector of colors.
Dustin Fife
string.to.colors
colorRampPalette
gradient.legend
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.