File Exchange

image thumbnail


version 0.1 (209 KB) by Ian Stevenson
matlab port for beeswarm-style dot plots


Updated 29 Jan 2019

From GitHub

View license on GitHub

Function for making swarmplots/beeswarms using a variety of ordering and corraling methods. Replicates a lot of the functionality of the beeswarm package in R.

Cite As

Ian Stevenson (2021). beeswarm (, GitHub. Retrieved .

Comments and Ratings (6)

lobster soup

Mina Sadeghi

Matthew Thompson

Wow this is really useful and versatile beeswarm plotter, best one for MATLAB I have found so far and I tried a few others. Simple to use, 1 function, multiple options, not sure what else you could ask for.

Matthew Thompson

Frieder Wittmann

Bug when running the example in MATLAb 2019a

>> clear all
>> y = randn(150,1);
>> x = round(rand(150,1)*5);
>> beeswarm(x,y,3,'up','ci')

Undefined function 'sqrt' for input arguments of type 'char'.

Error in beeswarm (line 61)
dcut = dcut*sqrt(dot_size)/as(1)*(range(unique(x))+1);

Diletta Ciardo

Really usefull. It would be nice to have a description of the properties and an easy way to change colors.

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!