| isColor | R Documentation |
detect valid R color
isColor(x, makeNamesFunc = c, ...)
x |
character vector of potential R colors |
makeNamesFunc |
function used to make names for the resulting vector |
... |
additional parameters are ignored |
This function determines whether each element in a vector is a valid R color, based upon the R color names, valid hex color format, and the word "transparent" which is valid as an R color.
logical vector with length(x).
Other jam color functions:
alpha2col(),
applyCLrange(),
col2alpha(),
col2hcl(),
col2hsl(),
col2hsv(),
color2gradient(),
fixYellow(),
fixYellowHue(),
getColorRamp(),
hcl2col(),
hsl2col(),
hsv2col(),
kable_coloring(),
makeColorDarker(),
rainbow2(),
rgb2col(),
setCLranges(),
setTextContrastColor(),
showColors(),
unalpha(),
warpRamp()
isColor(c("red", "blue", "beige", "#99000099", "#aa00ff", "#AAE", "bleh"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.