lump_alluvial_factors | R Documentation |
lump_alluvial_factors() takes a dataframe structured for ggalluvial and lumps the factor variables (var_from, var_to) according to two forcats functions which arguments should be modified in the code
lump_alluvial_factors(data, var_commune, var_from, var_flow, var_to)
data |
the dataset used to create the ggalluvial plot |
var_commune |
the municipality variable |
var_from |
the variable for the left stratum |
var_flow |
the variable that quantifies the flows from 'var_from' to 'var_to' |
var_to |
the variable for the right stratum |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.