I'm trying to use a package called d3Network in R to visualize some network and I used the 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 only gives me a bunch of scripts rather than a plot. I saw this example on the internet and it seems the others have never come cross this kind of issue. So am I doing something wrong or something is missing? And also I would like to know how to specify the colour of Source nodes and Target nodes.
Thanks in advance