Why can't I make a boxplot with data overlay?
7 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Brenno Selli
il 20 Ott 2023
Commentato: Akira Agata
il 23 Ott 2023
Here we go... So, I have the following boxplot, the values on the X-axis are spaced by 1, which is fine and I understand why, but I need to find a way to do the same boxplot, but with each box at its own value and scale even if there is box overlaps. Is there a way to do this?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1515911/image.jpeg)
0 Commenti
Risposta accettata
Akira Agata
il 20 Ott 2023
The following is an example:
% Sample data
x = [ones(100,1); 2*ones(100,1); 4*ones(100,1)];
y = rand(300,1)+x;
% Draw box plot for each x-value position
figure
boxchart(x,y)
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Parametric Spectral Estimation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!