Create a scatter plot with financial data
Source:R/scatter_plot_financial.R
scatter_plot_financial.Rd
Generate a scatter plot comparing the emission profile and transition risks for each bank in the portfolio.
Usage
scatter_plot_financial(
data,
grouping_emission = grouping_emission(),
mode = modes(),
scenario = scenarios_financial(),
year = years()
)
Arguments
- data
A data frame like 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
The mode of financial data to plot. It can be one of "equal_weight", "worst_case" or "best_case". If nothing is chosen, "equal_weight" is the default case.
- scenario
A character vector specifying the scenario to be plot. It can either be "IPR" or "WEO".
- year
A numerical specifying the year of the scenario to be plot. It can be either 2030 or 2050.
Value
A ggplot object.
Examples
scatter_plot_financial(financial,
grouping_emission = c("all", "tilt_sector"),
mode = "equal_weight",
scenario = "IPR",
year = 2030
)