findNodesToMerge: findNodesToMerge

Description Usage Arguments

View source: R/sankeydiagram.R

Description

Identifies the pair of nodes to merge which will minimize distinct links. Note this uses the weights, so adding multiple small links may be preferred to adding a single heavy link. Note also that the link to the merged node i.e. (A,B+C) is the has a weight that is the sum of (A,B) and (A,C). The relative proportions are not taken into account.

Usage

1

Arguments

df

dataframe containing factor variables only.

column

index of the column which we are looking to merge nodes for

weights

numeric vector containing weights for each row of df.


Displayr/flipPlots documentation built on April 13, 2021, 3:50 p.m.