Description Usage Arguments See Also Examples
Add a TauCharts annotations plugin
1 | tau_annotations(tau, annotation_df)
|
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 |
cars_data
dataset
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'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.