mipplot_box: Box plot from IAMC data

Description Usage Arguments Value Examples

View source: R/mipplot_box.R

Description

The function arguments include the input dataframe, labels for the plot/axes/legend, and faceting dimensions

Usage

1
2
3
4
5
6
7
8
9
mipplot_box(
  D,
  region = levels(D$region),
  variable = levels(D$variable),
  target_year = levels(as.factor(D$period)),
  PRINT_OUT = FALSE,
  DEBUG = TRUE,
  language = "en"
)

Arguments

D

A dataframe of IAMC data in tibble format to produce plots.

region

A list of regions.

variable

A list of variables.

target_year

target year.

PRINT_OUT

set TRUE to generate PDF file.

DEBUG

set TRUE to show debug messages.

language

A string of language. Possible values are "en", "jp", "es", "zh-cn", "zh-tw". The default value is "en".

Value

A list of box plots.

Examples

1
2
3
4
5
6
library(dplyr)
data_subset <- ar5_db_sample_data %>%
filter(variable == "Emissions|CO2|Land Use") %>%
filter(model %in% c("AIM-Enduse 12.1", "GCAM 3.0", "IMAGE 2.4")) %>%
filter(period == 2100) %>% filter(region == "OECD90")
mipplot_box(data_subset)

UTokyo-mip/mipplot documentation built on Aug. 7, 2021, 6:25 p.m.