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

View source: R/plot.R

autoplot.utsfR Documentation

Create a ggplot object from an utsf object

Description

Plot the time series and its associated forecast.

Usage

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

Arguments

object

An object of class utsf.

...

additional parameter.

Value

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

Examples

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

utsf documentation built on June 8, 2025, 10:44 a.m.