| autoplot.utsf_forecast | R Documentation |
utsf_forecast objectPlot the time series and its associated forecast.
## S3 method for class 'utsf_forecast'
autoplot(object, ...)
object |
An object of class |
... |
additional parameter. |
The ggplot object representing a plotting of the time series and
its forecast.
m <- create_model(AirPassengers, lags = 1:12, method = "rf")
f <- forecast(m, h = 12)
library(ggplot2)
autoplot(f)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.