How does one interpret and generate bean plot charts. Here is one example taken from Walkes et al. 2010. What kind of data is it most useful for?

bean plot
(source: biomedcentral.com)

  • 3
    $\begingroup$ "A beanplot is an alternative to the boxplot for visual comparison of univariate data between groups. In a beanplot, the individual observations are shown as small lines in a one-dimensional scatter plot. Next to that, the estimated density of the distributions is visible and the average is shown." Extract taken from here. $\endgroup$
    – user10525
    May 16, 2012 at 15:01
  • $\begingroup$ For those who don't know: this is a near relative of violin plot (vioplot). $\endgroup$
    – user88
    May 23, 2012 at 20:40

2 Answers 2


Boxplots were really designed for normal data, or at least unimodal data. The Beanplot shows you the actual density curve, which is more informative.

The shape is the density, and the short horizontal lines represent each data point. This combines the best of a boxplot, density plot, and rug plot all in one and is very readable.

Unfortunately, the example that you've chosen decided to add a bunch of longer lines which clutter the graph beyond recognition (for me). [snip]

EDIT: Having now worked with beanplot a bit more, the longer thick lines are the mean (or optionally median) for each bean. The longer thin lines are the data, with a sort of "stacking" where wider lines indicate more duplicate values. (You can also jitter them, which I prefer, but at least the "normal" category already has a fair density of points that jittering might make worse.)

I still think the example you chose is a rather cluttered, which could perhaps be cleared up by using jittering instead of stacking.

The paper that describes the R package for making bean plots is a nice read.

  • 3
    $\begingroup$ +1 - reading the bean plot article now. I would also suggest a working paper by Hadley Wickham, 40 years of boxplots. It goes through a description of a variety of plots with more of less the same goals as bean plots. $\endgroup$
    – Andy W
    May 16, 2012 at 17:12

Without having read the whole paper, it appears to be essentially a variant of the boxplot. As such, you could use it where you would have otherwise used a boxplot, such as comparing the univariate distributions of several groups. It displays a line for each point and overlays a kernel density estimate. From looking at it, I would think it might be more informative with small amounts of data, but be too cluttered with more data. It doesn't seem very Earth-shaking to me, at first blush. If you want to know something more, elaborate your question.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.