prepare_for_map_chart: Prepares results data per asset type for map plot

Description Usage Arguments Value Examples

View source: R/data_processing.R

Description

Prepares results data per asset type for map plot

Usage

1
2
3
4
5
6
7
8
prepare_for_map_chart(
  data_map_asset_type,
  asset_type,
  technology_filter,
  year_filter,
  value_divisor = 1,
  allocation_method = NULL
)

Arguments

data_map_asset_type

Dataframe in the shape of "Equity/Bonds_results_map.rda" dataset from PACTA analysis output in "40_Results" folder (dataframe).

asset_type

Asset type of the data used to specify default allocation method (character string).

technology_filter

Technology to be used for filtering (character string).

year_filter

Year to be used for filtering (integer).

value_divisor

Number by which to divide the values to be plotted (integer).

allocation_method

Allocation method used to calculate the production values. If none is specified "portfolio_weight" is used for Bonds and "ownership_weight" is used for Equity.

Value

Dataframe with columns (only important columns are listed): long, lat, group, value, unit, abbreviation_divisor.

Examples

1
#TODO

2DegreesInvesting/r2dii.ggplot documentation built on April 15, 2021, 5:22 a.m.