.isValidColor | R Documentation |
Check if the elements of a numeric
or character
vector
are valid colors understood by R.
.isValidColor(x)
x |
|
This is an internal function, used for example by valueToColor
.
The elements of x
are check for valid color specifications by
passing them to col2rgb
and checking for an exception.
A logical
vector of the same length as x
.
Michael Stadler
swissknife:::.isValidColor(c("black", "blackk"))
swissknife:::.isValidColor(c(-1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.