You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, friends.
The package you developed works really well, but for some reason, the columns on the right side of my image are stacked together.
My code is
`library(sankeyD3)
nodes = data.frame("name" =
c("a", # Node 0
"b", # Node 1
"c", # Node 2
"d",
"e",
"f",
"g",
"test",
"test1",
"test2"),
"PosX"=c((7389-5950),
(7389-3900),
(7389-7389),
(7389-4505),
(7389-4049),
(7389-3000),
(7389-2222),
(7389-2222),
(6000),
6000))# Node 3
links = as.data.frame(matrix(c(
0, 5, 0.066, # Each row represents a link. The first number
1, 5, 0.025, # represents the node being conntected from.
2, 5, 0.909, # the second number represents the node connected to.
0, 4, 0.9,
3,4,0.1,
4,6,1,
5,7,1,
7,8,1,
7,9,1),# The third number is the value of the node
byrow = TRUE, ncol = 3))
names(links) = c("source", "target", "value")
Hello, friends.
The package you developed works really well, but for some reason, the columns on the right side of my image are stacked together.
My code is
`library(sankeyD3)
nodes = data.frame("name" =
c("a", # Node 0
"b", # Node 1
"c", # Node 2
"d",
"e",
"f",
"g",
"test",
"test1",
"test2"),
"PosX"=c((7389-5950),
(7389-3900),
(7389-7389),
(7389-4505),
(7389-4049),
(7389-3000),
(7389-2222),
(7389-2222),
(6000),
6000))# Node 3
links = as.data.frame(matrix(c(
0, 5, 0.066, # Each row represents a link. The first number
1, 5, 0.025, # represents the node being conntected from.
2, 5, 0.909, # the second number represents the node connected to.
0, 4, 0.9,
3,4,0.1,
4,6,1,
5,7,1,
7,8,1,
7,9,1),# The third number is the value of the node
byrow = TRUE, ncol = 3))
names(links) = c("source", "target", "value")
sankeyNetwork(Links = links, Nodes = nodes,
Source = "source", Target = "target",
Value = "value", NodeID = "name",nodeStrokeWidth =5,
fontSize= 12, nodeWidth = 5,NodePosX="PosX",iterations=32,dragX=T,dragY=T
)`
The output is
Hope you can help me, thank you!
The text was updated successfully, but these errors were encountered: