Swarm plot examples

Steve Simon

2023-07-12

I came across a new type of plot yesterday, a swarm plot. It looks like an interesting alternative to jittering. You can create these graphs using the seaborn library of python, written by Michael Waskom and the beeswarm library of R, written by Aron Eklund. The actual algorithm is not quite obvious, but here are some examples.

Swarmplot example #1

This example was found on searborn.pydata.org.

Swarmplot example #2

This example was found on stackoverflow.com.

Swarmplot example #3

This example was found on geeksforgeeks.org.