forecast (version 7.0)

autoplot.stl: 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.

See Also

stl, plot.stl

Examples

Run this code
plot(stl(nottem, "periodic"))

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

Run the code above in your browser using DataLab