Description Usage Arguments Value Author(s) Examples
View source: R/multiplot_hierarchy.R
Function to inspect the time series on a hierarchical leve. The plot have the same y-axis scale, making them easily comparable.
1 | multiplot_hierarchy(data, level = "Top", fit = TRUE)
|
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? |
This function returns a plot.
Yves R. Sagaert, yves.sagaert@vives.be
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.