cond.col.vec | R Documentation |
Creates a color scale for the levels in a vector, then returns a vector assigning a color to each element of the input vector.
cond.col.vec(cond, colfn = rainbow, ...)
cond |
A vector that can be coerced to a factor. |
colfn |
A function that returns a color map for each level in |
... |
Additional arguments to |
A vector of colors corresponding to the elements of cond
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.