autoplot.utsf {utsf}R 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)

[Package utsf version 1.1.0 Index]