Prepare data to plot using plot_sankey()
Arguments
- data_alignment
data.frame. Holds aggregated alignment metrics per company for tms sectors. Must contain columns:
"name_abcd"
,"sector"
and any column implied bygroup_var
.- region
Character. Region to filter
data_alignment
data frame on.- year
Integer. Year on which
data_alignment
should be filtered.- group_var
Character. Vector of length 1. Variable to group by.
- middle_node
Character. Column specifying the middle nodes to be plotted in sankey plot. Must be present in
data_alignment
.- middle_node2
Character. Column specifying the middle nodes to be plotted in sankey plot. Must be present in
data_alignment
.