hex12tohex6 | R Documentation |
Tk colors must be in 6 hexadecimal format with two hexadecimal digits for each of the red, green, and blue components. Twelve hexadecimal digit colors have 4 hexadecimal digits for each. This function converts the 12 digit format to the 6 provided the color is preserved.
hex12tohex6(x)
x |
a vector with 12 digit hexcolors |
Function throws a warning if the conversion loses information. The
l_hexcolor
function converts any Tcl color specification to a
12 digit hexadecimal color representation.
x <- l_hexcolor(c("red", "green", "blue", "orange"))
x
hex12tohex6(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.