File Exchange

image thumbnail

daboxplot

version 1.0.9 (801 KB) by Povilas Karvelis
Boxplots for multiple conditions and groups

14 Downloads

Updated 03 Jul 2020

From GitHub

View Version History

View license on GitHub

A lightweight function for visualizing 2-level factorial data (conditions x groups) using boxplots - something that the built-in Matlab boxplot cannot do.

- Created for 2-level factorial data, but can handle one-factor data also
- Easily customizable for emphasizing data features and maximizing readability
. - spacing, scaling, transparency, scatter, outlier, mean, linking line options
- Can handle different input types (cell or numeric array)
- Exports many handles for further customization
- Fairly neat

The examples in the image illustrate most of the functionality and options (see daboxplot_demo.m for the code).

Cite As

Povilas Karvelis (2021). daboxplot (https://github.com/frank-pk/DataViz), GitHub. Retrieved .

Comments and Ratings (4)

Han Trwn

Carlos Borau

Awesome work!
I wrote an auxiliary function to convert data from tables to cell arrays (https://www.mathworks.com/matlabcentral/fileexchange/79646-fromtable2cellarray) so more people can use this.

yanyan tang

Andreas Brand

I would prefer and recommend that you supported tables, since they're IMHO much easier to handle and most people are more likely to use them to import data e.g.
Ideally one would simply specify one variable as data column and a xGroup and groupVar like so: daboxplot(table.values, table.xGroups, table.ColorGroups).

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

Inspired: BoxPlotPro

Community Treasure Hunt

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

Start Hunting!