autoplot.stl {forecast}R Documentation

ggplot STL object

Description

Produces a ggplot object of seasonally decomposed time series for objects of class "stl"

Usage

## S3 method for class 'stl'
autoplot(object, labels = NULL, ...)

Arguments

object

Object of class “acf”.

labels

Labels to replace "seasonal", "trend", and "remainder".

...

Other plotting parameters to affect the plot.

Value

None. Function produces a ggplot graph.

Author(s)

Mitchell O'Hara-Wild

See Also

stl, plot.stl

Examples

plot(stl(nottem, "periodic"))

library(ggplot2)
autoplot(stl(nottem, "periodic"))

[Package forecast version 7.3 Index]