MeanRarity-package | R Documentation |
The MeanRarity package provides a suite of functions related to computing, estimating, and visualizing Hill diversity: For references on mean rarity, see \insertCiteRoswell2021MeanRarity, \insertCitePatil2012MeanRarity, and \insertCiteJost2006MeanRarity
rarity
computes Hill
diversity as parameterized by \insertCiteRoswell2021MeanRarity, by
computing the generalized weighted mean of species rarities (i.e. the
reciprocal of relative abundance). The "link" functions for the generalized
mean are pfun
and its inverse ipfun
Roswell2021MeanRarity developed a method to simulate a
species abundance distribution (SAD) based on the [Hill] diversity of the
assemblage. This method fits a discretization (based on quantile values) of
a continuous parametric distribution (currently gamma or log-normal) based
on the known, simulated richness and (currently) Hill-Simpson diversity.
The function to do this is called fit_SAD
The code for rarity balance plots, also in
the web app https://mean-rarity.shinyapps.io/rshiny_app1/ is
also contained in this package. rarity_plot
makes rarity
balance plots. radplot
makes plots of rank-abundance
distributions, with or without log-transforming abundances
Maintainer: Michael Roswell mike.roswell@gmail.com (ORCID)
Authors:
Jonathan Dushoff jdushoff@gmail.com (ORCID)
Useful links:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.