The circlepackeR library allows to build interactive circle packing. Click on a group, and a smooth zoom will reveal the subgroups behind it.

Circle packing is a visualization method for hierarchical data. This kind of data can be stored in 2 main ways. This page provides the code to realize your figure from both formats.


from Nested data frame

In a nested data frame, each line represent a leaf of the organization. Each column represents a level of the organization. This data format will require the data.tree library to be transformed to something readable by circlepackeR.



from Edge list



The edge list format has at least 2 columns. It describes all the edges of the data.

This format is widely spread. In this example, we just convert it to a nested data  frame before plotting it as seen above.







Make a search