showLinePlots: Show Line Plots

View source: R/showLinePlots.R

showLinePlotsR Documentation

Show Line Plots

Description

Creates 2 sets of line plots from scenario data and shows them.

Usage

showLinePlots(
  data,
  vars = NULL,
  scales = "free_y",
  color.dim.name = NULL,
  mainReg = getOption("mip.mainReg")
)

Arguments

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 NULL all rows from data are plotted.

scales

A single string. choose either "free_y" or "fixed".

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 options(mip.mainReg=<value>) to set globally.

Details

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.

Value

NULL is returned invisible.

Example Plots

showLinePlots.png

Examples

## Not run: 
options(mip.mainReg = "World")
data <- as.quitte(data)
showLinePlots(data, "Policy Cost|GDP Loss")

## End(Not run)

pik-piam/mip documentation built on April 5, 2024, 12:31 p.m.