Effacer les filtres
Effacer les filtres

Why can't I make a boxplot with data overlay?

9 vues (au cours des 30 derniers jours)
Brenno Selli
Brenno Selli le 20 Oct 2023
Commenté : Akira Agata le 23 Oct 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?

Réponse acceptée

Akira Agata
Akira Agata le 20 Oct 2023
How about using a boxchart ?
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)
  8 commentaires
Voss
Voss le 20 Oct 2023
@Brenno Selli: You can thank @Akira Agata now by clicking the Accept button on his answer.
Akira Agata
Akira Agata le 23 Oct 2023
@Brenno Selli: It's my pleasure! :-)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Parametric Spectral Estimation dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by