Skip to contents

Utility functions

pacta_loanbook_conflicts()
Conflicts between the pacta.loanbook and other packages
pacta_loanbook_deps()
List all pacta.loanbook dependencies
pacta_loanbook_logo()
The pacta.loanbook logo, using ASCII or Unicode characters
pacta_loanbook_packages()
List all packages in pacta.loanbook
pacta_loanbook_sitrep()
Get a situation report on pacta.loanbook
pacta_loanbook_update()
Update pacta.loanbook packages

Matching functions

crucial_lbk()
Crucial loanbook columns for match_name()
match_name()
Match a loanbook to asset-based company data (abcd) by the name_* columns
prioritize()
Pick rows where score is 1 and level per loan is of highest priority
prioritize_level()
Arrange unique level values in default order of priority

Analysis functions

target_market_share()
Add targets for production, using the market share approach
target_sda()
Add targets for CO2 emissions per unit production at the portfolio level, using the SDA approach

Plotting functions

Preparing data

prep_emission_intensity()
Prepare data for a emission intensity plot
prep_techmix()
Prepare data for plotting technology mix
prep_trajectory()
Prepare data for a trajectory plot

Quick plots

qplot_emission_intensity()
Create a quick emission intensity plot
qplot_techmix()
Create a quick techmix plot
qplot_trajectory()
Create a quick trajectory plot

Plots

plot_emission_intensity()
Create an emission intensity plot
plot_techmix()
Create a techmix plot
plot_trajectory()
Create a trajectory plot

Styling functions

theme_2dii()
Complete theme
scale_colour_r2dii()
Custom 2DII colour and fill scales
scale_colour_r2dii_sector()
Custom 2DII sector colour and fill scales
scale_colour_r2dii_tech()
Custom 2DII technology colour and fill scales
scale_fill_r2dii()
Custom 2DII colour and fill scales
scale_fill_r2dii_sector()
Custom 2DII sector colour and fill scales
scale_fill_r2dii_tech()
Custom 2DII technology colour and fill scales

Convert labels

recode_metric_techmix()
Replicate labels produced with qplot_*() functions
recode_metric_trajectory()
Replicate labels produced with qplot_*() functions
spell_out_technology()
Replicate labels produced with qplot_*() functions
to_title()
Replicate labels produced with qplot_*() functions

Datasets

gics_classification
Dataset to bridge (translate) common sector-classification codes
increasing_or_decreasing
Determine if a technology is increasing or decreasing
isic_classification
Dataset to bridge (translate) common sector-classification codes
iso_codes
Countries and codes
nace_classification
Dataset to bridge (translate) common sector-classification codes
naics_classification
Dataset to bridge (translate) common sector-classification codes
palette_colours
Colour datasets
psic_classification
Dataset to bridge (translate) common sector-classification codes
region_isos
A dataset outlining various region definitions
scenario_colours
Colour datasets
sector_classifications
A view of available sector classification datasets
sector_colours
Colour datasets
sic_classification
Dataset to bridge (translate) common sector-classification codes
technology_colours
Colour datasets

Demo data

abcd_demo
An asset-based company dataset for demonstration
co2_intensity_scenario_demo
A prepared CO2 intensity climate scenario dataset for demonstration
loanbook_demo
A loanbook dataset for demonstration
market_share
An example of a market_share-like dataset
overwrite_demo
A demonstration dataset used to overwrite specific entity names or sectors
region_isos_demo
A dataset outlining various region definitions
scenario_demo_2020
A prepared climate scenario dataset for demonstration
sda
An example of an sda-like dataset

Data dictionary

data_dictionary
Data Dictionary