mipplot_additivity_check_bar: Additivity check using bar plot

Description Usage Arguments Value Examples

View source: R/mipplot_additivity_check_bar.R

Description

This function is used for debugging a rule table and data-set. An input is a rule table and a data-set, the outputs are some bar plots showing the divergence between the left-side variable and the sum of the right-side variables.

Usage

1
2
3
4
5
6
7
8
9
mipplot_additivity_check_bar(
  D,
  R,
  target_scenarios,
  target_rule_ids = 4,
  show_all_scenarios = FALSE,
  show_all_rule_ids = FALSE,
  debug = FALSE
)

Arguments

D

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

R

A dataframe of data aggregation rules (meta data).

target_scenarios

A character vector of scenario names

target_rule_ids

A list of rule id.

show_all_scenarios

Set TRUE to show all scenarios.

show_all_rule_ids

Set TRUE to show all rules.

debug

Set TRUE if show intermediate dataframe using View function.

Value

A list of bar plots.

Examples

1
2
3
mipplot_additivity_check_bar(
   ar5_db_sample_data, ar5_db_sample_rule_table,
   target_scenarios = c("EMF27-450-Conv", "EMF27-Base-NucOff"))

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