multiplot_hierarchy: Multiple Plot of Hierarchy

Description Usage Arguments Value Author(s) Examples

View source: R/multiplot_hierarchy.R

Description

Function to inspect the time series on a hierarchical leve. The plot have the same y-axis scale, making them easily comparable.

Usage

1
multiplot_hierarchy(data, level = "Top", fit = TRUE)

Arguments

data

Data frame containing of column 1: the date, and then columns with the time series data from high to low level in the hierarchy.

level

Level to plot: c("Top", "Mid", "Lower"). This can be the top level, mid level or lower levels. The input can be given in string or numeric format.

fit

Should a linear fitted model be added to the plot?

Value

This function returns a plot.

Author(s)

Yves R. Sagaert, yves.sagaert@vives.be

Examples

1
2
# df = data.frame(date=c(1,2,3,4),Top=c(156,145,126,135),A=c(10,20,30,40))
# multiplot_hierarchy(data = df, level = "Top", fit = TRUE)

yForecasting/leadingindicators documentation built on Dec. 12, 2021, 3:09 p.m.