d3.js - How to visualize the graph using d3Network in R -
i'm trying use package called d3network in r visualize network , used example in r :
# load data data(mislinks) data(misnodes) # create graph d3forcenetwork(links = mislinks, nodes = misnodes, source = "source", target = "target", value = "value", nodeid = "name", group = "group", opacity = 0.4)
it gives me bunch of scripts rather plot. saw example on internet , seems others have never come cross kind of issue. doing wrong or missing? , know how specify colour of source nodes , target nodes.
thanks in advance
it seems using d3network package old , 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)
Comments
Post a Comment