This page follows the previous introduction to hierarchical edge bundling. It considers you understood what inputs you need and how to build a basic version. it aims to describe how we can improve it, to get the above figure. First, we remember the R code allowing to get the previous basic version:




The first thing we can play with is the tension of the connections. A tension of 0 means straight lines. A connection of 1 means maximal curvature: the connections follow the hierarchical structure of the network as much as they can. Let’s have a look to the effect of different values.


Then we can play with the colour and transparency of connections. We have seen how to pick up a unique color in the example above. We can also map a specific variable to it like we are used to do with ggplot2 (chart 1 and 2 below)! Another possibility is to make the color evolves along the trajectory: the ‘from’ and the ‘to’ have different color. This is useful if your connection is directed, and gives the nice effect figure 4.


Finally we can custom the points as well, like for a classic ggplot2 graphic. It is a good practice to make the color depends of the classification of the point, it allows to make the hierarchy more obvious. In the last example, I map a column to the size of the points!


Now we probably need a last step: adding labels to each point to give more insight to the figure!





Make a search



Leave a Reply

Be the First to Comment!

Notify of