How to use vegan package of R language to calculate species accumulation curve
This article mainly explains "how to use the vegan package of R language to calculate the species accumulation curve", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to use the vegan package of R language to calculate the species accumulation curve.
Calculation of species accumulation curve with R language vegan package
Vegan package is the most commonly used R packet for community data analysis, in which the specaccum function is used to calculate the cumulative curve of species.
Input data, otutable: columns represent different species, rows represent different sampling points, and the numbers in the middle represent species abundance:
Sample code: require (vegan) otu