Description Usage Arguments Examples
Generate color palettes. Input: a vector with categories, can be numbers or strings. Handles repeating values. Output: color vector of equal length as input. Optionally it can ouput a list where an extra element lists the categories (simply using unique would remove the names). See example. Some color scale depend on packages "colorRamps", or "gplots".
1 2 3 4 5 6 7 8 9 |
vector |
A vector with categories, can be numbers or strings |
RColorBrewerSet |
Use one of the RColorBrewer color sets? Provide that name |
ReturnCategoriesToo |
Return unique Categories. See example. |
show |
Show generated color palette |
randomize |
Randomize colors |
set |
Color palette for base ("heat.colors", "terrain.colors", "topo.colors", "rainbow"), or "rich" for gplots::rich.colors, or "matlab" for colorRamps::matlab.like. |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.