This page aims to describe how to realise a basic circle packing chart with only one level of hierarchy. Basically, you just represent each entity or individual of your dataset with a circle, its size depends of a provided value.


It is like a barplot, but you use circle size instead of bar length. It is close to a bubble plot, but X and Y position do not mean anything. It is a circle version of a treemap.


Calculating the arrangement of dots is not a trivial problem. To resolve it, we use the packcircles library that will calculate the coordinates of every points of the circle edges. Then, we use ggplot2 to plot these shapes!









Make a search



Leave a Reply

Notify of