showMultiLinePlots: Show Multi-Line Plots

View source: R/showMultiLinePlots.R

showMultiLinePlotsR Documentation

Show Multi-Line Plots

Description

Show 2 sets of plots with different regions in the same plot (value over time).

Usage

showMultiLinePlots(
  data,
  vars,
  scales = "free_y",
  nrowNum = 1,
  mainReg = getOption("mip.mainReg")
)

Arguments

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 "free_y" or "fixed".

nrowNum

An integer value. Number of rows of the panel figures

mainReg

A single string. The plots for this region are shown enlarged. Use options(mip.mainReg=<value>) to set globally.

Details

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.

Value

NULL is returned invisible.

Example Plots

page 1: showMultiLinePlots1.png page 2: showMultiLinePlots2.png

Examples

## 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)

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