Description Usage Arguments Value Author(s) See Also Examples
Get colors from a named palette or other formats
1 |
palette |
A palette name with/without number of colors, or a vector of color names, or a hex color value. |
... |
ignore |
A vector of hex colors.
Yiying Wang, wangy@aetna.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ## Not run:
## Get a hex vector based on color names
getHexPal(c("red", "yellow"))
# return c("#FF0000", "#FFFF00")
getHexPal("red")
# return "#FF0000"
## Get a hex vector based on a hex value
getHexPal("#fff")
# return #ffffff
## Get a hex vector based on palette name
getHexPal("terrain(4)")
# return c("#00A600", "#E6E600", "#ECB176", "#F2F2F2")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.