In ecology, alpha diversity (α-diversity) refers to biodiversity on a local scale. In this example, we will compute common diversity metrics from a dataset of tree counts in 50 1-hectare plots on Barro Colorado Island from the vegan R library (Oksanen et al., 2022).
Define ecological observation and environmental data (or import the data from a CSV file):
Gotelli, N. J., & Ellison, A. M. (2012). A Primer of Ecological Statistics (Second Edition). Oxford University Press.
Oksanen, J., Simpson, G. L., Blanchet, F. G., Kindt, R., Legendre, P., Minchin, P. R., O'Hara, R. B., Solymos, P., Stevens, M. H. H., Szoecs, E., Wagner, H., Barbour, M., Bedward, M., Bolker, B., Borcard, D., Carvalho, G., Chirico, M., Caceres, M. D., Durand, S., … Weedon, J. (2022). vegan: Community Ecology Package. https://CRAN.R-project.org/package=vegan