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 !


Leave a Reply

Notify of