forecast (version 7.0)

autoplot.decomposed.ts: 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.

See Also

decompose, stl

Examples

Run this code
library(ggplot2)
m <- decompose(co2)
autoplot(m)

Run the code above in your browser using DataLab