rdiversity is a package for R based around a framework for measuring biodiversity using similarity-sensitive diversity measures. It provides functionality for measuring alpha, beta and gamma diversity of metacommunities (e.g. ecosystems) and their constituent subcommunities, where similarity may be defined as taxonomic, phenotypic, genetic, phylogenetic, functional, and so on. It uses the diversity framework described in the arXiv paper arXiv:1404.6520 (q-bio.QM), “How to partition diversity”.
To install rdiversity from CRAN, simply run the following from an R console:
The latest development version can be installed from GitHub:
# install.packages("devtools") devtools::install_github("boydorr/rdiversity")
Examples of how to use the package are included in our docs, as well as in a vignette currently only available in the development version of this package:
install_github("boydorr/rdiversity", build_vignettes = TRUE) vignette("examples", "rdiversity")