multiple_boxplot.m
This boxplot function plots grouped boxes, for more advanced statistical analysis.
Features:
-In each boxplot different amount of data supported
-Any amount of groups and boxplot per group supported
-Xlabel and boxplotlabel supported
-Automatic choice of colors or user specified colors
Example of use:
clear;clc;
% Create example data
A=rand(100,10);
B=rand(200,10);
C=rand(150,10);
% prepare data
data=cell(10,3);
for ii=1:size(data,1)
Ac{ii}=A(:,ii);
Bc{ii}=B(:,ii);
Cc{ii}=C(:,ii);
end
data=vertcat(Ac,Bc,Cc);
xlab={'Hey','this','works','pretty','nicely.','And','it','has','colors','!!!!'};
col=[102,255,255, 200;
51,153,255, 200;
0, 0, 255, 200];
col=col/255;
multiple_boxplot(data',xlab,{'A', 'B', 'C'},col')
title('Here it is!')
Zitieren als
Ander Biguri (2024). multiple_boxplot.m (https://www.mathworks.com/matlabcentral/fileexchange/47233-multiple_boxplot-m), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Statistical Visualization > Box Plots >
Tags
Quellenangaben
Inspiriert: Online portfolio selection with transaction costs including market impact costs
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.2.0.0 | Example of use added |
||
1.1.0.0 | Brief description |
||
1.0.0.0 |