Beanplot: A Boxplot Alternative for Visual Comparison of Distributions

  • Kampstra P
N/ACitations
Citations of this article
599Readers
Mendeley users who have this article in their library.

Abstract

Boxplots and variants thereof are frequently used to compare univariate data. Boxplots have the disadvantage that they are not easy to explain to non-mathematicians, and that some information is not visible. 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. It is easy to compare different groups of data in a beanplot and to see if a group contains enough observations to make the group interesting from a statistical point of view. Anomalies in the data, such as bimodal distributions and duplicate measurements, are easily spotted in a beanplot. For groups with two subgroups (e.g., male and female), there is a special asymmetric beanplot. For easy usage, an implementation was made in R.

Figures

  • Figure 1: A density trace of a normal distribution with a rug (1d-scatter plot) and its corresponding beanplot. The small lines represent individual data points.
  • Figure 2: Plots for a bimodal, a uniform and a normal distribution. In the beanplot the green lines show individual observations, while the purple area shows the distribution.
  • Figure 3: The height in inches of different singers. The beanplot clearly shows the individual measurements were rounded to whole inches.
  • Figure 4: An asymmetric beanplot of the singers.
  • Figure 5: Comparing the potency of various constituents of orchard sprays in repelling honeybees for different threatments with a normal distribution (method ‘1’).

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Kampstra, P. (2008). Beanplot: A Boxplot Alternative for Visual Comparison of Distributions. Journal of Statistical Software, 28(Code Snippet 1). https://doi.org/10.18637/jss.v028.c01

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 292

60%

Researcher 136

28%

Professor / Associate Prof. 47

10%

Lecturer / Post doc 8

2%

Readers' Discipline

Tooltip

Agricultural and Biological Sciences 179

55%

Environmental Science 57

17%

Computer Science 54

17%

Biochemistry, Genetics and Molecular Bi... 36

11%

Article Metrics

Tooltip
Mentions
Blog Mentions: 1

Save time finding and organizing research with Mendeley

Sign up for free