Common SNAP color palettes.
snapalettes(palette = 1, n = NULL)
palette | character or integer, name or index of color palette. |
---|---|
n | number of colors returned from |
a vector of hex colors.
Obtain commonly used SNAP color palettes for styling plots.
Palettes can be specified by name or index.
By default, all colors are returned (n = NULL
).
If n
is less than the number of colors in palette
, the first n
colors are returned.
snapalettes()#> [1] "#386cb0" "#fdb462" "#7fc97f" "#ef3b2c" "#662506" "#a6cee3" "#fb9a99" #> [8] "#984ea3" "#ffff33"