Skip to contents

Build link definitions between Sankey nodes

Usage

make_links(x, nodes = make_nodes(x))

Arguments

x

A data frame containing at least id, step, and package columns describing package transitions for each simulation run.

nodes

Optional nodes data frame as returned by make_nodes(). If omitted the nodes are derived from x.

Value

A tibble describing links between nodes including source, target, and tooltip metadata.