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

조회 수: 7 (최근 30일)
Brenno Selli
Brenno Selli 2023년 10월 20일
댓글: Akira Agata 2023년 10월 23일
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?

채택된 답변

Akira Agata
Akira Agata 2023년 10월 20일
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
Voss
Voss 2023년 10월 20일
@Brenno Selli: You can thank @Akira Agata now by clicking the Accept button on his answer.
Akira Agata
Akira Agata 2023년 10월 23일
@Brenno Selli: It's my pleasure! :-)

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by