myplot_RAC: Rank-Abundance Curve
This function plots Rank-Abundance Curve.
(each community well be presented in subplots, so cannot be embedded in subplot)
For document see the PDF file, or (https://github.com/weitingwlin/matlabutility/blob/master/documents/myplot_RAC.md)
Syntax
myplot_RAC(X)
myplot_RAC(X, strs, strn, bigtitle, colorsheet, stylesheet)
X: matrix of size [n, p] ; for n communities, p species
strs: optional, cell array of strings or a string, the name of the "species".
strn: optional, cell array of strings or a string, , the name of the "communities"
bigtitle: the big title, default is 'Rank-Abundance Curve'
colorsheet : 3 by p' matrix (p' > p). The color of each Species, ranked in the first row. Can also take index in mycolor, see example for detail. if input is only 1 color, all species will have same color.
stylesheet :cell array of string. The style of each Species, ranked in the first row.
Cite As
Wei-Ting Lin (2026). myplot_RAC: Rank-Abundance Curve (https://uk.mathworks.com/matlabcentral/fileexchange/60494-myplot_rac-rank-abundance-curve), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired by: mycolor(colorcode, selectplate), mysubplot: subplots with major title
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
