tau_annotations: Add a TauCharts annotations plugin

Description Usage Arguments See Also Examples

Description

Add a TauCharts annotations plugin

Usage

1
tau_annotations(tau, annotation_df)

Arguments

tau

taucharts object

annotation_df

a data frame with the following columns: dim: the data dimension to annotate (i.e. name of data column) val: the value (axis intercept) of the annotation text: the text to be displayed at the annotation front: if the annotation should be at in "front" of or "behind" the other data points color: hex color for annotation

See Also

cars_data dataset

Examples

1
2
3
4
5
6
data(cars_data)
tauchart(cars_data) %>%
  tau_point("milespergallon", c("class", "price"), color="class") %>%
  tau_annotations(data.frame(dim = "price", val = 50000,
                        text = "Whoa there!", position = "front",
                        color = '#4300FF'))

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