Prepare data to plot timeline
Arguments
- data
data.frame. Must contain columns:
'direction','year','exposure_weighted_net_alignment','sector'and any column implied bygroup_var.- sector
Character. Sector to filter data on.
- region
Character. Region to filter data on.
- group_var
Character. Vector of length 1. Variable to group by.
- groups_to_plot
Character vector. Groups to filter on.