Description Usage Arguments Details Value
View source: R/myBasicFunctions.R
Test if a variable could be used as a color
1 | isValidColor(colorname)
|
colorname |
a string or a numerical value containing the potential color |
A valid color name is a numerical value or a string which is in colors() or a character vector with elements of 7 or 9 characters, "#" followed by the red, blue, green and optionally alpha values in hexadecimal (after rescaling to 0 ... 255).
A boolean which would say if the colorname is a valid color name or not.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.