I have included a data frame which depicts a very small subset of the data I am using. My aim is to construct an interactive network due to the large number of nodes in the data.
library(networkD3)
screenName <- c("ZV8Lxypirmo2T8z", "Zwoodbutcher", "zX3GZYH7Ea5FKhx", "zXZK7fkzrpPpJdb",
"ZyaTheKing", "zzzcccbbbmmm")
mention <- c("GianCavallotto:", "IanPTrait:", "JahovasWitniss:", "Veachtravis:",
"visecs:", "Charles_HRH:")
n <- c(1L, 1L, 1L, 1L, 1L, 1L)
data <- data.frame(screenName,mention,n)
simpleNetwork(data)
The above code allows for the construction of an interactive undirected network graph. I came across the forceNetwork() function under the networkD3R library which might help here. But I do not really know how to convert the data.frame for its usage in this function. Thank You in advance!
graph_from_data_frame()- Simon JacksonNodes,NodeIDandGroupin theforceNetwork()function. What values should I pass to these parameters? - adhokggraphpackage too. With the data I have, it becomes too overcrowded even withrepelset asTRUE. - adhok