autoplot.decomposed.ts {forecast}R Documentation

ggplot of a decomposed time series object

Description

Produces a ggplot object of decomposed components of a time series object

Usage

## S3 method for class 'decomposed.ts'
autoplot(object, ...)

Arguments

object

Object of class “decomposed.ts” to be plotted.

...

Other plotting parameters to affect the plot.

Value

None. Function produces a ggplot graph.

Author(s)

Mitchell O'Hara-Wild

See Also

decompose, stl

Examples

library(ggplot2)
m <- decompose(co2)
autoplot(m)

[Package forecast version 7.1 Index]