The simpleNetwork() function of the networkD3 library allows to make simple chart. If you want to make highly customisable charts, you need to use the forceNetwork() function. This function needs 2 dataframe as input. One describes edges, the other describes dots. Here is a basic usage of the funcion:

Now, the interest of this function is to customize the plot. See below for the meaning of each argument. Note that it is useful to map a color or a size to a variable!

 


Not what you are looking for ? Make a new search !

[mediatagger]


1
Leave a Reply

avatar
1 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Holger Bruns Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Holger Bruns
Guest
Holger Bruns

Handling of input data broken: Conversion to numerical node ID independently for source and target columns , which will result in DIFFERENT assignements for the same node. Take a look at the produced graph: There is a node from “I” to “E”, but that link does not exist in the original data.