when I am ploting a directed graph with NetworkD3 , The edges are not directed , how can I fix it ? an Example :
library(networkD3)
data(MisLinks)
data(MisNodes)
forceNetwork(Links = MisLinks, Nodes = MisNodes,
Source = "source", Target = "target",
Value = "value", NodeID = "name",
Group = "group", opacity = 0.8)
I want the result to be directed This is the definetion of directed Graph:
"A directed graph is graph, i.e., a set of objects (called vertices or nodes) that are connected together, where all the edges are directed from one vertex to another. A directed graph is sometimes called a digraph or a directed network."
I want the edges be like arrows , how can i do it in networkD3 , I hope it's clear.
Thx.
The
forceNetwork()
function of the networkD3 package does not draw arrows on the links for directed graphs. I can say that quite definitively because I am one of the currently active developers working on the package and I know the function and its options very well. You can also run?networkD3::forceNetwork
in your R console to see the help file and all of the possible options for theforceNetwork()
function.UPDATE (2017.03.20)
This feature (plotting arrows for a directed graph) is now part of the official CRAN release version of
networkD3
. Once installed, you can plot a directed forceNetwork with arrows with...and it should look like...