Last data update: 2014.03.03

R: Plot grouped or hierarchical time series
plot.gtsR Documentation

Plot grouped or hierarchical time series

Description

Method for plotting grouped or hierarchical time series and their forecasts.

Usage

## S3 method for class 'gts'
plot(x, include, levels, labels = TRUE, ...)

Arguments

x

An object of class gts.

include

Number of values from historical time series to include in the plot of forecasted group/hierarchical time series.

levels

Integer(s) or string(s) giving the specified levels(s) to be plotted

labels

If TRUE, plot the labels next to each series

...

Other arguments passing to plot.default

Author(s)

Rob J Hyndman and Earo Wang

References

R. J. Hyndman, R. A. Ahmed, G. Athanasopoulos and H.L. Shang (2011) Optimal combination forecasts for hierarchical time series. Computational Statistics and Data Analysis, 55(9), 2579–2589. http://robjhyndman.com/papers/hierarchical/

See Also

aggts

Examples

plot(htseg1, levels = c(0, 2))
plot(infantgts, include = 10, levels = "State")

Results