Skip to content

Commit 249d1a9

Browse files
committed
Adds sankey diagrams
1 parent fc942fb commit 249d1a9

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

doc-files-filtered.gephi

37.4 KB
Binary file not shown.

sankey-filtered.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
library("networkD3")
2+
library("igraph")
3+
4+
data <- read_graph("perl6-ecosystem.net",format="pajek")
5+
issues <- igraph_to_networkD3(data)
6+
sn <- sankeyNetwork(Links = issues$links, Nodes = issues$nodes, Source = "source",
7+
Target = "target", Value = "value", NodeID = "name",
8+
units = "commits", fontSize = 20, nodeWidth=30)
9+
sn %>% saveNetwork( file= 'sankey.html' )

sankey.html

Lines changed: 19 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)