forecast (version 7.3)

autoplot.stl: ggplot STL object

Description

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

Usage

"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

See Also

stl, plot.stl

Examples

Run this code

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

Run the code above in your browser using DataCamp Workspace