plot.gts

0th

Percentile

Plot grouped or hierarchical time series

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

Keywords
hplot
Usage
# S3 method for gts
plot(x, include, levels, labels = TRUE, col = NULL,
  color_lab = FALSE, ...)
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

col

Vector of colours, passed to plot.ts and to lines

color_lab

If TRUE, colour the direct labels to match line colours. If FALSE will be as per par()$fg.

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

Aliases
  • plot.gts
Examples
# NOT RUN {
plot(htseg1, levels = c(0, 2))
plot(infantgts, include = 10, levels = "State")
plot(infantgts, include = 10, levels = "State", 
    col = colours()[100:107], lty = 1:8, color_lab = TRUE)

# }
Documentation reproduced from package hts, version 5.1.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.