I\'ve been trying to plot a network using networkD3 package in R for a week now. The simpleNetwork
function works normally, but it doesn\'t allow much
I have just fixed the same problem in my own forceNetwork. It turned out that the dataframe of edges that I had created (exported from iGraph) had character
types, not int
types. Casting the edge 'from' and 'to' columns using as.numeric()
resolved the problem and the links drew correctly.
I hope this helps.
With regards,
Will