beeswarm.m
matlab port of beeswarm-style dot plots. reproduces most of the functionality of beeswarm in R.
Ian Stevenson, CC-BY, 2019
typical use cases
beeswarm(x,y,...)
xbee = beeswarm(x,y,...)
% example
x = round(rand(80,1)*2);
y = randn(80,1);
beeswarm(x,y,'sort_style','up','dot_size',4)
optional arguments
{sort_style, corral_style, dot_size, overlay_style, use_current_axes, colormap, MarkerFaceColor, MarkerFaceAlpha, MarkerEdgeColor}
sort-styles
{'nosort' [default], 'up' ,'fan','down','rand','square','hex'}
corral-styles
{'none' [default], 'gutter', 'omit', 'random'}
overlay-styles
{'box' [default],'sd','ci'}