Prepare data to plot timeline
Usage
prep_timeline(data, sector, region, group_ids_to_plot)
Arguments
- data
data.frame. Must contain columns: 'direction', 'year',
'exposure_weighted_net_alignment', 'group_id', 'sector'.
- 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.