Sunday, May 8, 2016

Beeswarm plots to show frequency distributions

The Truthful Art has a couple of chapters discussing the virtues and shortcomings of different frequency charts, such as the histogram, the box plot, the violin plot, and even the strip plot. Gerardo Furtado has just reminded me of another one, the beeswarm plot*, which is similar to the strip plot, but disposes of dot overlap. See this pretty example, and play with it. Aren't d3.js's animated transitions amazing?

(*Yes, there's an R package to do beeswarm plots, too.)

UPDATE: Andres Snitcofsky has asked if circles of the same color should be clustered together. The answer is yes, if it's possible.