forceNetwork not displaying, no code errors returned

流过昼夜 提交于 2019-12-01 19:42:10

I needed to set the names for the vertices using:

V(g)$name<-1:104

after I initialized the graph (g)

Your link_list$source and link_list$target vectors appear to include indexes that are not in your node_list, e.g. -1 and 2249... or the values in those vectors are not what they are supposed to be...

The source and target vectors in the Links data frame must be numeric, and their values refer to the index of the node in the Nodes data frame which they represent (zero-indexed, unlike R, because it's used by the JavaScript code).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!