This page follows the previous introduction and customisation tutorials to hierarchical edge bundling. It considers you understood what inputs you need and how to build a good version. It aims to describe how to add labels to the figure, as shown beside.


The first step is to build our dataset as we’ve done in the previous tutorial.



Now, we need to add information to the vertices data frame. We need to calculate what will be the angle of the labels. Moreover, we need to flip some of them to keep them readable, what means that we also need to determine if they must be aligned on the left or on the right:






Awesome, now we can add these information to add a geom_node_text to our figure:











Of course you can add customisation to this geom, to get the final figure:











Make a search



Leave a Reply

Notify of