powered by
Checks to see if a given vector can be interpreted by R as a color or colors
areColors(col)
A logical vector stating whether inputs can be interpreted as colors.
A vector of anything to be interpreted by rgb as a color.
rgb
areColors(col = c("red", "prairie_chicken", 2))
Run the code above in your browser using DataLab