Description Usage Arguments Note References Examples
Use the ColorBrewer palette in the charts
1 | tau_color_brewer(tau, n = NULL, palette = "Set2")
|
tau |
taucharts object |
n |
number of colors to generate (no checking is done to ensure the palette
has |
palette |
ColorBrewer palette name. One of |
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).
http://api.taucharts.com/advanced/encoding.html
1 2 3 | tauchart(mtcars) %>%
tau_point("wt", "mpg", color="cyl") %>%
tau_color_brewer(3, "Set3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.