Learn R Programming

hts (version 3.03)

plot.gts: 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 = length(x$m), 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
Number of levels of the hierarchy to be plotted
labels
If TRUE, plot the labels next to each series
...
Other arguments passing to plot.default

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/

Examples

Run this code
plot(htseg1)

Run the code above in your browser using DataLab