hex.RdThis functions converts color-class objects into hexadecimal strings.
hex(from, gamma = NULL, fixup = FALSE)A vector of character strings.
The color objects are first converted to sRGB color objects. They are then
multiplied by 255 and rounded to obtain an integer value. These values are
then converted to hexadecimal strings of the form "#RRGGBB" and
suitable for use as color descriptions for R graphics. Out of gamut values
are either corrected to valid RGB values by translating the the individual
primary values so that they lie between 0 and 255.