Fits unimodal and multimodal gambin distributions to species-abundance distributions
from ecological data, as in in Matthews et al. (2014)
This package fits the gambin
distribution to species-abundance distributions from ecological data. 'gambin' is short for 'gamma-binomial'. The main functions are fit_abundances
, which estimates the alpha
parameter of the gambin distribution using maximum likelihood, and mult_abundances
which estimates alpha
for multiple sites / samples after standardising for the number of individuals. Recent functions are also provided to generate the gambin distribution and for calculating likelihood statistics. The package now provides functionality to fit multimodal gambin distributions.
The package is currently on CRAN and can be installed via
install.packages("gambin")
Alternatively, you can install the developmental version via
devtools::install_github("txm676/gambin")
d/r/p/q
functionsfitGam
plot
to barplot
, lines
, points
. You can now pass standard plotting arguments
and everything will work as expected.README.Rmd
to generate README.md