2
我探索visNetwork和想不通爲什麼這一個不顯示邊緣爲什麼不這樣visNetwork R中顯示邊緣
library(visNetwork)
nodes=data.frame(node=c('m1','m2','n1','n2'))
a=data.frame(x=c('n1','n2'),y=c('m1','m2'))
links=a%>% group_by(x,y)%>%tally()
visNetwork(nodes, links)