Learn R Programming

utsf (version 1.1.0)

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

Description

Plot the time series and its associated forecast.

Usage

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

Value

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

Arguments

object

An object of class utsf.

...

additional parameter.

Examples

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

Run the code above in your browser using DataLab