prepare_for_techmix_chart: Prepares pre-processed data for plotting a tech-mix chart

Description Usage Arguments Examples

View source: R/prepare_for_techmix_chart.R

Description

Prepares pre-processed data for plotting a tech-mix chart

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
prepare_for_techmix_chart(
  data,
  sector_filter = c("automotive", "aviation", "cement", "oil and gas", "shipping",
    "steel", "power"),
  years_filter = NULL,
  region_filter = "global",
  scenario_source_filter = NULL,
  scenario_filter = NULL,
  value_to_plot = "technology_share"
)

Arguments

data

Pre-processed input data.

sector_filter

Sector for which to filter the data (character string).

years_filter

Years to plot in the graph (array of integer values).

region_filter

Region for which to filter the data (character string).

scenario_source_filter

Scenario source for which to filter the data (character string).

scenario_filter

Scenario to plot in the graph (character string).

value_to_plot

The name of the value to be plotted as a bar chart (character string).

Examples

1
2
3
4
5
6
7
8
9
prepare_for_techmix_chart(
  process_input_data(example_data),
  sector_filter = "power",
  years_filter = c(2020, 2025),
  region_filter = "global",
  scenario_source_filter = "demo_2020",
  scenario_filter = "sds",
  value_to_plot = "technology_share"
)

2DegreesInvesting/r2dii.plot.static documentation built on Dec. 17, 2021, 6:37 a.m.