View source: R/network_analysis.R
make_sankey | R Documentation |
Make NetworkD3 Sankey object from node and edge data with tooltips
make_sankey( nodes, edges, source, target, value, node_label = process_description, edge_label = NULL, sankey_width = NULL, sankey_height = NULL, font_size = 12 )
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. |
NetworkD3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.