create_alluvial_chart | R Documentation |
create_alluvial_chart() creates a ggplot2 alluvial plot using ggalluvial library and uses labels and variable names as arguments for a flexible data input
create_alluvial_chart(
data,
var_commune,
var_flow,
var_from,
label_from,
var_to,
label_to
)
data |
the dataset used to create the ggalluvial plot |
var_commune |
the variable holding the commune name |
var_flow |
the variable that quantifies the flows from 'var_from' to 'var_to' |
var_from |
the variable for the left stratum |
label_from |
legend located below the left side of the alluvial |
var_to |
the variable for the right stratum creates a ggplot2 alluvial chart using the ggalluvial library and heat building consumption data from an aggregated RegEner dataset |
label_to |
legend located below the right side of the alluvial |
a ggplot2 object for regener alluvial visualisations
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.