Open chenc327 opened 1 year ago
If you are using groups, you have to defined groups options using visGroups
?visGroups
nodes <- data.frame(id = 1:10, label = paste("Label", 1:10),
group = sample(c("A", "B"), 10, replace = TRUE))
edges <- data.frame(from = c(2,5,10), to = c(1,2,10))
visNetwork(nodes, edges) %>%
visLegend() %>%
visGroups(groupname = "A", color = "red", shape = "database") %>%
visGroups(groupname = "B", color = "yellow", shape = "triangle")
Hi, thanks for this outstanding tools.I'm just a beginner in this software I WANT to know why the color in network shows different with my settings in
node
. I have setted the color to be orange and grey, but finally got a plot in different color. THANKS