View source: R/showMultiLinePlots.R
showMultiLinePlots | R Documentation |
Show 2 sets of plots with different regions in the same plot (value over time).
showMultiLinePlots(
data,
vars,
scales = "free_y",
nrowNum = 1,
mainReg = getOption("mip.mainReg")
)
data |
A quitte object or an object that can be transformed into a quitte object. |
vars |
A character vector. The variables to be plotted. |
scales |
A single string. choose either |
nrowNum |
An integer value. Number of rows of the panel figures |
mainReg |
A single string. The plots for this region are shown enlarged.
Use |
Creates two plots (main region + others) with the values of vars
over
time. Different regions are shown in the same plot. Faceting is done by
variable
. The plots arranged and shown.
NULL
is returned invisible.
page 1: page 2:
## Not run:
options(mip.mainReg = "World")
data <- as.quitte(data)
vars <- c(
"FE|Transport pCap",
"FE|Buildings pCap",
"FE|Industry pCap")
showMultiLinePlots(data, vars)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.