Why can't I make a boxplot with data overlay?
8 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Akira Agata
2023 年 10 月 20 日
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)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!