make_sankey: Make NetworkD3 sankey object

View source: R/network_analysis.R

make_sankeyR Documentation

Make NetworkD3 sankey object

Description

Make NetworkD3 Sankey object from node and edge data with tooltips

Usage

make_sankey(
  nodes,
  edges,
  source,
  target,
  value,
  node_label = process_description,
  edge_label = NULL,
  sankey_width = NULL,
  sankey_height = NULL,
  font_size = 12
)

Arguments

nodes

Nodes tibble zero indexed.

edges

Edge data with source and target zero-indexed.

source,

target, value Column names in edges tibble.

edge_label,

node_label Enquoted columns in edges tibble. Used for flow tooltip

sankey_width

Width (in pixels) of sankey.

sankey_height

Height (in pixels) of sankey.

font_size

Numeric.

Value

NetworkD3


DataScienceScotland/vedar documentation built on April 3, 2022, 10:32 p.m.