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).
Povilas Karvelis (2021). daboxplot (https://github.com/frank-pk/DataViz), GitHub. Retrieved .
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.
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).
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!