tau_color_manual: Specify the colors used in the charts

Description Usage Arguments References Examples

Description

Vector can be optionally named in order to give explicit color/value mapping.

Usage

1
tau_color_manual(tau, values = NULL)

Arguments

tau

taucharts object

values

vector of colors, ideally names (e.g. "black") or hex-format (e.g. "#ffeeaa")

References

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

Examples

1
2
3
4
5
6
7
tauchart(mtcars) %>%
  tau_point("wt", "mpg", color="cyl") %>%
  tau_color_manual(c("blue", "maroon", "black"))

tauchart(mtcars) %>%
  tau_point("wt", "mpg", color="cyl") %>%
  tau_color_manual(c(`4`="blue",`6`= "maroon",`8`= "black"))

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