getHexPal: Generalized color values parser

Description Usage Arguments Value Author(s) See Also Examples

Description

Get colors from a named palette or other formats

Usage

1

Arguments

palette

A palette name with/without number of colors, or a vector of color names, or a hex color value.

...

ignore

Value

A vector of hex colors.

Author(s)

Yiying Wang, wangy@aetna.com

See Also

getAetnaPal

Examples

 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)

madlogos/aseshms documentation built on May 21, 2019, 11:03 a.m.