sinaplot

Produces sinaplots (density-scaled jittered plots)
68 Downloads
Updated 20 Nov 2018

View License

Bar charts are bad and have polluted literature since forever. Violin plots can look weird. Strip charts, beeswarm plots, or box plots are better, but do not provide all the relevant information.

To represent datasets with differing sample size, use sinaplots, developed by Sidiropoulos et al., 2018.

"Sinaplot is inspired by the strip chart and the violin plot. By letting the normalized density of points restrict the jitter along the x-axis the plot displays the same contour as a violin plot, but resemble a simple strip chart for small number of data points. In this way the plot conveys information of both the number of data points, the density distribution, outliers and spread in a very simple, comprehensible and condensed format."

This function is under construction and I will enhance it once my thesis is written. All contributions welcome. Uses distinguishable_colors.m for plotting

Nikos Sidiropoulos, Sina Hadi Sohi, Thomas Lin Pedersen, Bo Torben Porse, Ole Winther, Nicolas Rapin & Frederik Otzen Bagger (2018) SinaPlot: An Enhanced Chart for Simple and Truthful Representation of Single Observations Over Multiple Classes, Journal of Computational and Graphical Statistics, 27:3, 673-676, DOI: 10.1080/10618600.2017.1366914

Cite As

Sebastien De Landtsheer (2024). sinaplot (https://www.mathworks.com/matlabcentral/fileexchange/69408-sinaplot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.1

Added colors and exceptions

1.0.0