Using visNetwork to dynamically update nodes in R
问题 the below snapshot visual is created using the "visNetwork" package. My requirement here is that I have to hard code the edges and also after using visHierarchicalLayout(), I am not able to see them in order, Please help me with a dynamic approach such that no matter how many numbers, I get consecutive numbers in order without hard code. Thanks and please help. library(visNetwork) nodes <- data.frame(id = 1:7, label = 1:7) edges <- data.frame(from = c(1,2,3,4,5,6), to = c(2,3,4,5,6,7))