Skip to contents

Prepare data to plot scatterplot

Usage

prep_scatter(
  data_bopo,
  data_net,
  data_level = c("bank", "company"),
  year,
  sector,
  region,
  group_ids_to_plot = NULL
)

Arguments

data_bopo

data.frame. Data containing buildout and phaseout alignment values. Must contain columns: 'group_id', 'year', 'sector', 'region', 'direction' and either 'name_abcd' and 'alignment_metric' or 'exposure_weighted_net_alignment'.

data_net

data.frame. Data containing net alignment values. Must contain columns: 'group_id', 'year', 'sector', 'region', 'direction' and either 'name_abcd' and 'alignment_metric' or 'exposure_weighted_net_alignment'.

data_level

Character. Level of the plotted data. Can be 'bank' or 'company'.

year

Integer. Year on which the data should be filtered.

sector

Character. Sector to filter data on.

region

Character. Region to filter data on.

group_ids_to_plot

Character vector. Bank ids to filter on.

Value

data.frame

Examples

#TODO