편집자 메모: This file was selected as MATLAB Central Pick of the Week
plotSpread allows creating "beeswarm plots", i.e. point distributions where jitter has been added to the data points to avoid overlap.
It further allows specifying groups within the data to show the distribution of the groups inside a distribution.
plotSpread is most suited to visualizing distributions with small amounts of data points. If the points become too dense, it becomes difficult to appreciate the relative importance of modes of a distribution, in which case "distributionPlot" should be used.
plotSpread uses the excellent "distinguishable_colors" to choose default colors for different categories.
In addition, the .zip file contains "myErrorbar" (a modification of the built-in errorbar), "repeatEntries" for easy repetition of entries in a list, and "isEven" to test whether a number is even. For both "repeatEntries" and "isEven" there are better alternatives on the File Exchange.
인용 양식
Jonas (2024). plot spread points (beeswarm plot) (https://www.mathworks.com/matlabcentral/fileexchange/37105-plot-spread-points-beeswarm-plot), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux카테고리
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Annotations >
- MATLAB > Graphics > 2-D and 3-D Plots > Data Distribution Plots > Histograms >
태그
도움
도움 받은 파일: Generate maximally perceptually-distinct colors
도움 준 파일: Violin Plots for plotting multiple distributions (distributionPlot.m)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!