Description Usage Arguments Value Author(s) Examples
Map values to colors
1 |
x |
A numeric vector. |
palette |
diverge, rainbow, sequential |
A vector of colors corresponding to input vector.
Wubing Zhang
1 | getCols(1:4)
|
1 2 3 4
"#7FC97F" "#FFD58C" "#C2488F" "#666666"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.