View source: R/showRegiLinePlots.R
showRegiLinePlots | R Documentation |
Shows line plots of a variable with different regions in the same plot and faceting by scenario.
showRegiLinePlots(
data,
vars,
scales = "free_y",
excludeMainRegion = TRUE,
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 |
excludeMainRegion |
A single logical value. Should the main region be excluded (or shown in the same plot)? |
mainReg |
A single string. Use options(mip.mainReg=<value>) to set globally. |
Creates one set of plots with the values of vars
over time. Does not
show historical data. Different regions are shown in the same plot. Faceting
is done by scenario
. The plots arranged and shown.
NULL
is returned invisible.
## Not run:
options(mip.mainReg = "World")
data <- as.quitte(data)
showRegiLinePlots(data, "Price|Carbon")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.