autoplot.utsf_forecast {utsf}R Documentation

Create a ggplot object from an utsf_forecast object

Description

Plot the time series and its associated forecast.

Usage

## S3 method for class 'utsf_forecast'
autoplot(object, ...)

Arguments

object

An object of class utsf_forecast.

...

additional parameter.

Value

The ggplot object representing a plotting of the time series and its forecast.

Examples

m <- create_model(AirPassengers, lags = 1:12, method = "rf")
f <- forecast(m, h = 12)
library(ggplot2)
autoplot(f)

[Package utsf version 1.3.0 Index]