autoplot.tbl_ts | R Documentation |
Produces a time series plot of one or more variables from a tsibble. If the tsibble contains a multiple keys, separate time series will be identified by colour.
## S3 method for class 'tbl_ts'
autoplot(object, .vars = NULL, ...)
## S3 method for class 'tbl_ts'
autolayer(object, .vars = NULL, ...)
object |
A tsibble. |
.vars |
A bare expression containing data you wish to plot. Multiple variables can be plotted using |
... |
Further arguments passed to |
library(fable)
library(tsibbledata)
library(tsibble)
tsibbledata::gafa_stock %>%
autoplot(vars(Close, log(Close)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.