How to plot a swarm chart with no specific x-values?
古いコメントを表示
Hi everyone,
I have a huge dataset, around 1 million values in a column. The range of these values are limited. They, for example, fluctuate between -100 to +100 (I need to find these two values by min and max). The fluctuation is also very erratic (there might be some patterns though).
So, I was having an idea to use swarm chart and plot the distribution of this dataset on something like a swarm chart. Do you think it would be possible using swarm chart or any other chart type on MATLAB? (I know we can use histogram but something like what I described would be easier to understand for my audience)
I mean something like this:

5 件のコメント
Russel Burgess
2021 年 3 月 12 日
Wolfgang McCormack
2021 年 3 月 12 日
Russel Burgess
2021 年 3 月 14 日
I'm not sure if it's exactly what you're after, but you can just set the x values to all be 0, for example:
x = zeros(1e3,1);
y = randn(1e3,1);
swarmchart(x,y);
Produces:

Wolfgang McCormack
2021 年 3 月 14 日
Wolfgang McCormack
2021 年 3 月 15 日
採用された回答
その他の回答 (1 件)
This Github offering has worked pretty well for me:
5 件のコメント
Wolfgang McCormack
2021 年 3 月 12 日
Wolfgang McCormack
2021 年 3 月 12 日
Matt J
2021 年 3 月 12 日
I guess you figured it out (sinc eyou Accept-clicked the answer)?
Wolfgang McCormack
2021 年 3 月 14 日
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
