Create a horizontal stacked bar chart without financial data
Source:R/bar_plot_emission_profile.R
bar_plot_emission_profile.Rd
Generate a horizontal stacked bar chart showing the distribution of the emission risk profiles risks for one or several benchmarks.
Usage
bar_plot_emission_profile(
data,
grouping_emission = grouping_emission(),
mode = modes(),
scenario = scenarios(),
year = years(),
risk_category = risk_category()
)
Arguments
- data
A data frame like without_financial.
- grouping_emission
A character vector specifying the benchmarks for which the emission profiles will be plotted. The user can choose from one to several benchmark(s) to be plotted.
- mode
A character vector: equal_weight, best_case, worst_case.
- scenario
A character vector: 1.5C RPS, NZ 2050.
- year
A character vector: 2030, 2050.
- risk_category
A character vector.
Value
A ggplot object.
Examples
grouping_emission <- c("unit")
bar_plot_emission_profile(without_financial, grouping_emission, risk_category = "emission_category")