mipBarYearData: mipBarYearData

View source: R/mipBarYearData.R

mipBarYearDataR Documentation

mipBarYearData

Description

Function for plotting (bar-plot) MAgPIE objects and compare different scenarios or models, on the x-axis for some time steps one bar for each scenario/model is generated

Usage

mipBarYearData(
  x,
  colour = NULL,
  ylab = NULL,
  xlab = NULL,
  title = NULL,
  scenario_markers = TRUE
)

Arguments

x

Data to plot. Allowed data formats: magpie or quitte

colour

Dimension to be colored, default: "Scenario"

ylab

y-axis text

xlab

x-axis text

title

title appearing at the top of the plot

scenario_markers

Use markers to conserve space with long scenario names. Symbols are either picked automatically (default), or can be passed as a named vector in the form of c('scenario' = 'marker'), where marker is a number between 1 and 20, or a ggplot2 shape name (see vignette("ggplot2-specs")). Set to FALSE to not use markers.

Example Plot

example plot example plot example plot

Author(s)

Lavinia Baumstark, Oliver Richters

Examples

## Not run: 
plotCompBarYearData(EnInv, ylab = "Energy Investments|Elec (billion US$2005/yr)",
                     colour = plotstyle(getNames(EnInv, dim = 2)))

## End(Not run)


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