tau_trendline: Add a TauCharts trendline

Description Usage Arguments See Also Examples

Description

Add a TauCharts trendline

Usage

1
2
3
tau_trendline(tau, type = NULL, hideError = FALSE, showPanel = TRUE,
  showTrend = TRUE, models = c("linear", "exponential", "logarithmic",
  "loess", "lastvalue", "polynomial", "power"))

Arguments

tau

taucharts object

type

character Model representing default trend line to show. Must be one of models specified in models parameter. If unspecified, will use the first model specified in models.

hideError

logical to show errors.

showPanel

logical to show the panel next to the chart to allow a user to manipulate the trendlines. When FALSE, the trendlines will still appear though.

showTrend

logical to show the trendlines on initial display. If showPanel = TRUE, then the user will have the opportunity to add/delete the trendlines.

models

character or vector of characters for the models to show in the trendline panel if showPanel = TRUE. If you would like to change the order of the options, then you can do models = c("logarithmic","exponential"), and the first provided will be the initial model type used.

See Also

cars_data dataset

Examples

1
2
3
4
data(cars_data)
tauchart(cars_data) %>%
  tau_point("milespergallon", c("class", "price"), color="class") %>%
  tau_trendline()

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