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,
benchmarks = benchmarks(),
mode = c("equal_weight", "worst_case", "best_case"),
scenario = c("IPR", "WEO"),
year = c(2030, 2050)
)
Arguments
- data
A data frame like financial.
- benchmarks
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,
benchmarks = c("all", "tilt_sector"),
mode = "equal_weight",
scenario = "IPR",
year = 2030
)