Script for running the country maps
The input file (transition_risk_profile_at_product_level_21_02_25.csv) to this script is present in the latest release of the tiltOutput repository.
library(readr)
library(dplyr)
library(tiltPlot)
transition_risk_product <- read_csv("transition_risk_profile_at_product_level_21_02_25.csv")
tiltPlot:::map_region_risk(transition_risk_product,
country_code = c("ES"),
grouping_emission = "unit_tilt_subsector",
scenario = "NZ 2050",
year = 2030,
risk_category = "transition_risk_category")
Please change the parameters with the following options to get variety of plots as per your need:
country_code = c("DE", "AT", "FR", "NL", "ES")
grouping_emission = c("all", "unit", "tilt_subsector", "isic_4digit", "unit_tilt_subsector", "unit_isic_4digit")
scenario = c("NZ 2050", "1.5C RPS")
year = c(2030, 2050)
risk_category = c("transition_risk_category", "sector_category", "emission_category")
If you receive this error to run the function map_region_risk() on MacOS:
PROJ: proj_create_from_database: Cannot find proj.db (GDAL error 1)
then please use the code mentioned in this comment to resolve this issue!
Script for running the country maps
The input file (
transition_risk_profile_at_product_level_21_02_25.csv) to this script is present in the latest release of the tiltOutput repository.Please change the parameters with the following options to get variety of plots as per your need:
country_code = c("DE", "AT", "FR", "NL", "ES")
grouping_emission = c("all", "unit", "tilt_subsector", "isic_4digit", "unit_tilt_subsector", "unit_isic_4digit")
scenario = c("NZ 2050", "1.5C RPS")
year = c(2030, 2050)
risk_category = c("transition_risk_category", "sector_category", "emission_category")
If you receive this error to run the function
map_region_risk()on MacOS:then please use the code mentioned in this comment to resolve this issue!