Description Usage Arguments Author(s) Examples
This function creates a plot for a time series object using different engines. Corresponding libraries will be loaded.
1 | ts_plot(x, interactive = F, engine = "ggplot")
|
x |
A time series. |
interactive |
Set to FALSE for base R and ggplot2 plots and TRUE for plotly and highcharter. Defaults to TRUE. |
engine |
Library to be used to create the plot, can be any of "base" "ggplot", "plotly" and "highcharter". Defaults to "ggplot". |
David Alberto Mateos Montes de Oca.
1 2 | x <- AirPassengers
ts_plot(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.