tau_color_brewer: Use the ColorBrewer palette in the charts

Description Usage Arguments Note References Examples

Description

Use the ColorBrewer palette in the charts

Usage

1
tau_color_brewer(tau, n = NULL, palette = "Set2")

Arguments

tau

taucharts object

n

number of colors to generate (no checking is done to ensure the palette has n colors).

palette

ColorBrewer palette name. One of "Set2", "BrBG", "PiYG", "PRGn", "PuOr", "RdBu", "RdGy", "RdYlBu", "RdYlGn", "Spectral", "Accent", "Dark2", "Paired", "Pastel1", "Pastel2", "Set1", "Set3", "Blues", "BuGn", "BuPu", "GnBu", "Greens", "Greys", "Oranges", "OrRd", "PuBu", "PuBuGn", "PuRd", "Purples", "RdPu", "Reds", "YlGn", "YlGnBu", "YlOrBr", "YlOrRd".

Note

It is highly suggested that callers use the ColorBrewer qualitative palettes: ["Accent", "Dark2", "Paired", "Pastel1", "Pastel2", "Set1", "Set2", "Set3"], especially if you are plotting categorical values (which you most liklely are since you're using this package).

References

http://api.taucharts.com/advanced/encoding.html

Examples

1
2
3
tauchart(mtcars) %>%
  tau_point("wt", "mpg", color="cyl") %>%
  tau_color_brewer(3, "Set3")

hrbrmstr/taucharts documentation built on May 17, 2019, 5:14 p.m.