lump_alluvial_factors: lump_alluvial_factors() takes a dataframe structured for...

View source: R/fct_helpers.R

lump_alluvial_factorsR 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

Description

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

Usage

lump_alluvial_factors(data, var_commune, var_from, var_flow, var_to)

Arguments

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

Value

a ggplot object


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