Convert R colour to hexadecimal representation.
Examples
Col2Hex(1:3)
#> [1] "#000000" "#DF536B" "#61D04F"
Col2Hex(c("peachpuff", "blue"), TRUE)
#> [1] "#FFDAB9FF" "#0000FFFF"
Convert R colour to hexadecimal representation.
Col2Hex(1:3)
#> [1] "#000000" "#DF536B" "#61D04F"
Col2Hex(c("peachpuff", "blue"), TRUE)
#> [1] "#FFDAB9FF" "#0000FFFF"