areColors: Check that color names are the names of some real colors.

View source: R/PrettyBarPlot2.R

areColorsR Documentation

Check that color names are the names of some real colors.

Description

areColors: Check that color names are the names of some real colors.

Usage

areColors(x)

Arguments

x

a string vectors with (to be checked) names of colors.

Details

credit: Credit: https://stackoverflow.com/questions/13289009/check-if-character-string-is-a-valid-color-representation

Value

a logical vector with TRUE if a color, FALSE if not.

Examples

areColors(c(NA, "black", "blackk", "1", "#00", "#000000"))

HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.