score:6

It seems you are using d3Network package which is old and not supported anymore. Try using networkD3 package.
The function name is: forceNetwork

Try this:

library(networkD3)
data(MisLinks)
data(MisNodes)
forceNetwork(Links = MisLinks, Nodes = MisNodes, Source = "source",
             Target = "target", Value = "value", NodeID = "name",
             Group = "group", opacity = 1)

Related Query

More Query from same tag