Boxplots with three subgroups
Afficher commentaires plus anciens
Hi,
I am trying to plot a boxplot with 3 different groups but I somehow not all of the data is getting displayed.
For each Electrode type there are 2 types of measurements, and for each measurement type there are 6 samples.
The plot below is nearly what I want but for some reason only 3 of the samples get displayed each time.
This is my code:
Electrodes = repmat({'B1' 'B2' 'B3' 'B4'},1,12);
DepolType = [repmat({'Type1'},1,24),repmat({'Type2'},1,24)];
Samples=repmat({'Sam.1' 'Sam.2' 'Sam.3' 'Sam.4' 'Sam.5' 'Sam.6'},1,8);
boxplot(Plot2,{Electrodes,DepolType, Samples},'colors',C,'factorgap',[20 2 2]...
,'labelverbosity','minor','plotstyle','compact', 'LabelOrientation', 'horizontal');
The variable Plot 2 is a 40x48 double. There are 6 samples per Type and 2 Types per Electrode (4 Electrodes): 2*6*4
I am not very confident with the various input types for boxplot, so I don't really understand what is going on.

Réponses (0)
Catégories
En savoir plus sur Box Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!