Description Usage Arguments Value
plot the network with sankey diagram, either by country or by continent
1 2 3 4 5 6 7 8 9 | net2sankey(
net,
percent = NULL,
fontSize = 25,
fontFamily = "Times New Roman",
nodeWidth = 20,
nodePadding = 10,
sinksRight = FALSE
)
|
net |
an igraph or tidygraph object |
percent |
the cumulative percnet value used to filter out the edges by cumulative weight |
fontSize |
the font size of the plot |
fontFamily |
the font type of the plt |
nodeWidth |
the width of the nodes |
nodePadding |
the width of the height |
sinksRight |
whether the plot will align to the right |
a list with the sankey data for both country and continent and the sankey digram object for the country and continent with different coloring scheme
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.