View source: R/showLinePlots.R
showLinePlots | R Documentation |
Creates 2 sets of line plots from scenario data and shows them.
showLinePlots(
data,
vars = NULL,
scales = "free_y",
color.dim.name = NULL,
mainReg = getOption("mip.mainReg")
)
data |
A quitte object or an object that can be transformed into a quitte object. |
vars |
A character vector. Usually just a single string. The variables
to be plotted. If |
scales |
A single string. choose either |
color.dim.name |
name for the color-dimension used in the legend |
mainReg |
A single string. The plots for this region are shown enlarged.
Use |
Two sets of line plots are shown (main region + others), depicting the values
in vars
over time. Faceting is done by region
. The plots
arranged and shown.
NULL
is returned invisible.
## Not run:
options(mip.mainReg = "World")
data <- as.quitte(data)
showLinePlots(data, "Policy Cost|GDP Loss")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.