linkdata:
from to freq
<int> <int> <int>
1 0 0 1
2 0 1 33
3 0 2 22
4 1 0 22
5 1 1 1
6 1 2 32
nodes = data.frame( names = unique(Data$names))%>%add_row(names = "other")
sankeyNetwork( Links = as.data.frame( linkdata), Nodes = nodes, Source = "from",
Target = "to", Value = "freq" , NodeID = "names",
fontSize = 12, nodeWidth = 30)
The plot is not being displayed. I have added a new row in nodes based on an answer on StackOverflow even that did not work.
Data contains just some names that I want to name the labels in the sunkey plot.
names
1 a
2 b
3 c
4 d
5 e
6 f
7 other

Data? - CJ Yetman