hts (version 4.0)

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, 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

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

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

Run the code above in your browser using DataCamp Workspace