What is a beeswarm plot?
A beeswarm plot is a chart that draws one dot per data point along a single value axis and moves dots sideways when they would land on top of each other. Nothing is averaged or binned. You see every value, and the outline of the dots shows how the values are spread: wide where many values sit close together, thin where there are few.
The name comes from the R package that made the chart popular. Its authors describe it as "a one-dimensional scatter plot like 'stripchart', but with closely-packed, non-overlapping points" (beeswarm on CRAN). You'll also see it written as bee swarm plot, or called a swarm plot after the function of that name in Python's seaborn library. They're all the same chart.

Sample data: post-test scores of 84 students in three classes, 28 per class. Download the data (CSV)
How do you read a beeswarm plot?
Read it along the value axis only. In the chart above that's the vertical axis, the test score.
- Height is the value. A dot at 73 is a student who scored 73 points.
- Width is how common a value is. Where the swarm bulges, several students have nearly the same score.
- Left and right mean nothing. A dot sits to the side only because the middle was taken. Don't read the sideways position as a number.
- Gaps are real. An empty stretch means nobody scored in that range.
- A dot on its own is one case. You can point at it and ask what happened there.
Now apply that to the sample classes. In 9A one student scored 36, eleven points below the next classmate at 47. In 9B nobody scored between 82 and 87, and above that gap six students sit between 88 and 95: the class is really two groups. In 9C five students are packed at 60 and 61 points. Each of those is a question a teacher would want to ask, and each comes from looking at single dots.
Beeswarm plot vs box plot: what does each one show?
A box plot shows a summary: the median, the middle half of the values and the range. A beeswarm shows the values themselves. Here are the same 84 scores as a box plot.

The same sample data as chart 1. Download the data (CSV)
| Class | Box plot | Beeswarm plot |
|---|---|---|
| 9A | Median 73, middle half from about 66 to 82, one outlier at 36 | The same lone student at 36, and how far that is from everyone else |
| 9B | Median 68, middle half from about 62 to 80 | A gap from 82 to 87 and a separate group of six students at 88 to 95 |
| 9C | Median 64, middle half from about 56 to 75 | Five students packed at 60 and 61 points |
The box plot answers "which class did better?" faster: three medians, one glance. It can't show the two groups in 9B, because a box only knows quartiles. The beeswarm shows them at once but makes you estimate the median by eye. If you're new to quartiles and whiskers, the guide on how to read a box plot explains each part, and the box plot maker draws one from a file with a group column and a number column.
How is a beeswarm different from a strip plot or a histogram?
All of these charts show how one numeric column is distributed. They differ in what happens when two values are nearly the same.
| Chart | What happens to similar values | Every point visible? | Works best for |
|---|---|---|---|
| Strip plot | Dots are drawn on one line and overlap | No, ties hide each other | A handful of points |
| Jittered strip plot | Each dot is moved sideways by a random amount | Mostly, some still overlap | A quick look at a few hundred points |
| Beeswarm plot | Each dot is moved sideways just far enough to clear its neighbours | Yes | Small groups where single points matter |
| Histogram | Values are counted into bins and drawn as bars | No, only counts | Any number of points, one group at a time |
| Box plot | Values are reduced to median, quartiles and range | Only outliers | Comparing many groups |
| Violin plot | Values are smoothed into a density outline | No | Large groups with an unusual shape |
The difference between jitter and a beeswarm is that jitter is random and a beeswarm is not. Draw a jittered chart twice and the dots land in different places. A beeswarm places the dots by rule, so the outline itself carries information: it's close to what a histogram of the same data would look like, turned on its side and mirrored. For the binned version, see how to make a histogram.
When should you use a beeswarm plot, and when not?
Use a beeswarm when the reader should see the individual cases as well as the overall shape.
- Small to medium groups. Test scores per class, salaries per team, measurements per treatment in a lab trial.
- Data where outliers are people or things with names. One late project, one very large order, one student who needs help.
- Checking a summary before you trust it. A mean or a box plot can hide two groups, as class 9B shows.
- Extra information per point. Each dot can carry a colour, for example the group it belongs to.
Pick another chart in three situations. With thousands of points the dots must shrink until the swarm is a blob, and the layout gets slow to compute: the seaborn documentation says of its own swarm plot that it "does not scale well to large numbers of observations" (seaborn.swarmplot).
With heavily rounded values, such as ratings from 1 to 5, the dots stack into straight rows and a bar chart of the counts says the same thing more clearly. And when the audience only needs the comparison between groups, a box plot gets there with less ink.
What is a SHAP beeswarm plot?
It's the same drawing idea used for a different job. SHAP is a Python library that explains the predictions of machine-learning models. Its beeswarm plot has one row per input feature and one dot per prediction.
According to the SHAP documentation, "the x position of the dot is determined by the SHAP value" of that feature, and "color is used to display the original value of a feature". So position shows how strongly a feature pushed a prediction up or down, and colour shows whether the feature's own value was high or low.
The reading rule from above still holds: where a row is thick, many predictions were affected by about the same amount. If you came here from a model explanation, that's the part to carry over. The rest of this page is about the plain beeswarm for a column of measurements.
How do you make a beeswarm plot from a spreadsheet?
In R and Python it's one function call: the beeswarm and ggbeeswarm packages in R, and swarmplot in seaborn. Excel has no beeswarm among its chart types, and neither has CleanChart among its 29. In both you can still draw one, because a beeswarm is a scatter chart whose sideways positions were worked out beforehand. The chart at the top of this page was made that way: a CSV with one extra column, drawn as a scatter chart in CleanChart.
- Start with two columns: the group (Class) and the value (Post-test). One row per data point.
- Give each group a number. 9A is 1, 9B is 2, 9C is 3. That number is where the middle of each swarm will sit.
- Put values into narrow bins. In Excel, with the score in column C: =ROUND(C2/2,0)*2 puts scores into bins 2 points wide. Dots in the same bin of the same class are the ones that would collide.
- Count the dots per bin. With the class in column B and the bin in column D: =COUNTIFS(B:B,B2,D:D,D2) gives how many share the bin, and =COUNTIFS(B$2:B2,B2,D$2:D2,D2) gives this dot's number within it.
- Spread them around the middle. Position = group number + (dot number - (dots in bin + 1) / 2) * step. A single dot stays in the middle, two dots sit left and right of it, three sit left, middle and right.
- Draw a scatter chart with the position on the X axis and the value on the Y axis. Adjust the step (0.036 in our file) until neighbouring dots just touch.
This spreadsheet version is an approximation: dots in neighbouring bins can still touch. The positions in our download were computed by a short script that checks every pair of dots and puts each one in the nearest free slot, which is what the R and Python functions do too. Both ways give you a file any scatter tool can draw.
To draw the sample file yourself, upload it to the scatter plot maker or the CSV to scatter chart converter, set X to "Swarm position" and Y to "Post-test".
For one colour per class, the file also has a score column for each class (9A, 9B, 9C) that is empty for students of the other classes: use 9A as Y and add 9B and 9C as further series. Leave those empty cells empty. If the cleaning step offers to fill missing values, skip it for these three columns, or the dots end up in the wrong class.
The sample file is also the one behind CleanChart's sample results report: the same 84 rows as a written report with charts, findings and a summary (sample PDF). Reports come with the Deadline Pass ($4.99, 24 hours) and Pro ($19 a month); page 1 is a free preview.
Keep reading
Frequently Asked Questions
Is a beeswarm plot the same as a swarm plot?
Yes. Beeswarm plot, bee swarm plot and swarm plot are names for the same chart: one dot per data point along a value axis, with overlapping dots moved sideways. The name beeswarm comes from an R package, swarm plot from the swarmplot function in Python's seaborn library.
Does the sideways position of a dot mean anything?
No. Only the position along the value axis is data. A dot sits to the left or right because the middle was already taken by a dot with a similar value. What you can read is the width of the swarm: the wider it is, the more points share that value.
How many data points can a beeswarm plot show?
As many as fit without shrinking the dots to specks. It works well for tens to a few hundred points per group. With thousands of points the swarm turns into a blob, and a histogram, box plot or violin plot shows the distribution more clearly.
Can Excel make a beeswarm plot?
Not as a built-in chart type. Excel's chart list has scatter, histogram and box and whisker charts, but no beeswarm. You can build one as a scatter chart: add a column with a sideways position for each point, then plot that position against the value.
When is a box plot better than a beeswarm plot?
When you compare many groups, when each group has thousands of points, or when readers only need the medians and the spread. A box plot reduces each group to five numbers, so it stays readable where a beeswarm gets crowded. It cannot show gaps or separate clusters inside a group.