Plot time series aggregates

Description

Plots all temporal aggregations of a time series

Usage

1
2
3
4
5
## S3 method for class 'tsaggregates'
plot(x, series = "all", ...)

## S3 method for class 'tsaggregates'
autoplot(object, series = "all", ...)

Arguments

x

tsaggregates object, produced by tsaggregates.

series

The indexes of the series to plot. By default, all series are plotted.

...

Other arguments passed to plot.ts or autoplot.ts.

object

tsaggregates object, produced by tsaggregates.

Author(s)

Rob J Hyndman

Examples

1
2
3
4
5
deathagg <- tsaggregates(USAccDeaths)
plot(deathagg, series=c(1,2,4,6))

library(ggplot2)
autoplot(deathagg)