getColors: Get Hex Color Vector (Not Exported)

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Get color vector from a palette/color name. It is wider than getColFromPal.

Usage

1

Arguments

palette

Palette, default NULL. Could be

  • palette name, e.g, "Blues". The palette will be proceeded by getColFromPal.

  • a hex color, e.g., "#FFFFFF", "0xFFFFFFFF"

  • a vector or color names, hex colors

  • NULL

...

Elipsis

Value

A vector of hex colors

See Also

getColFromPal RColorBrewer ggthemes

Examples

1
2
3
4
5
6
7
## Not run: 
library(scales)
show_col(getColors(NULL))
show_col(getColors("terrain"))
show_col(getColors(c('red', 'gold', 'skyblue')))

## End(Not run)

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