as_hex6color | R Documentation |
Return a 6 hexidecimal digit color representations
as_hex6color(color)
color |
input color |
Compared with hex12tohex6()
, it could accommodate 6 digit code, 12 digit code or
real color names.
l_hexcolor
, hex12tohex6
,
l_colorName
color <- c("#FF00FF", "#999999999999", "red")
# return 12 hexidecimal digit color
loon:::l_hexcolor(color)
# return 6 hexidecimal digit color
as_hex6color(color)
# return color names
l_colorName(color)
## Not run: # WRONG COLORS
hex12tohex6(color)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.