net2sankey: plot the network with sankey diagram, either by country or by...

Description Usage Arguments Value

View source: R/net2sankey.r

Description

plot the network with sankey diagram, either by country or by continent

Usage

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
)

Arguments

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

Value

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


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.