minimize_crossing_alluvial: Order the rectangles of the alluvial in a way that minimize...

View source: R/minimize_crossing_alluvial.R

minimize_crossing_alluvialR Documentation

Order the rectangles of the alluvial in a way that minimize crossing of flow

Description

This function transform the node_id into a factor ordered by a newly created column named "minimize_crossing_order".

Usage

minimize_crossing_alluvial(
  alluv_dt,
  intertemporal_cluster_column = NULL,
  node_id = NULL,
  window_column = "window"
)

Arguments

alluv_dt

Data.frame of the alluvial created using the networkflow::networks_to_alluv function

intertemporal_cluster_column

The column with the identifier of the inter-temporal cluster. If you have used add_clusters() and merge_dynamic_clusters(), it is of the form dynamic_cluster_{clustering_method}.

node_id

The column with the unique identifier of each node. This is the alluvium of the alluvial.

window_column

The column with your time windows.

@examples


agoutsmedt/networkflow documentation built on March 15, 2023, 11:51 p.m.