create_alluvial_chart: create_alluvial_chart() creates a ggplot2 alluvial plot using...

View source: R/fct_helpers.R

create_alluvial_chartR 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

Description

create_alluvial_chart() creates a ggplot2 alluvial plot using ggalluvial library and uses labels and variable names as arguments for a flexible data input

Usage

create_alluvial_chart(
  data,
  var_commune,
  var_flow,
  var_from,
  label_from,
  var_to,
  label_to
)

Arguments

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

Value

a ggplot2 object for regener alluvial visualisations


vdes2020/eneRgyVD documentation built on July 3, 2025, 7:36 p.m.