Skip to contents

Prepare data to plot animated scatterplot

Usage

prep_scatter_animated(
  data_bopo,
  data_net,
  data_level = c("bank", "company"),
  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'.

sector

Character. Sector to filter data on.

region

Character. Region to filter data on.

group_ids_to_plot

Character vector. Group ids to filter on.

Value

data.frame

Examples

#TODO