autoplot.stl {forecast} | R Documentation |
Produces a ggplot object of seasonally decomposed time series for objects of class "stl"
## S3 method for class 'stl' autoplot(object, labels = NULL, ...)
object |
Object of class “acf”. |
labels |
Labels to replace "seasonal", "trend", and "remainder". |
... |
Other plotting parameters to affect the plot. |
None. Function produces a ggplot graph.
Mitchell O'Hara-Wild
plot(stl(nottem, "periodic")) library(ggplot2) autoplot(stl(nottem, "periodic"))