autoplot.utsf_forecast: Create a ggplot object from an 'utsf_forecast' object

View source: R/plot.R

autoplot.utsf_forecastR 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)

utsf documentation built on April 22, 2026, 9:08 a.m.