This function converts any color of the R system to hexadecimal format.
col2hexa(x, alpha.channel = FALSE, alpha = 1, charstring = TRUE)
A character vector of hexadecimal values.
a vector of any of the three kinds of R color specifications.
logical. Sould an alpha channel included in the output? Default is FALSE
.
a vector of numeric values in \([0, 1]\). Recycled if necessary.
logical. Sould resulting elements be surrounded by quotation marks? Default is TRUE
.
col2rgb
for translating R colors to RGB vectors.