divpro | R Documentation |
Compute observed Hill diversity profile based on an abundance vector over a range of scaling exponent values.
divpro(ab, ell_low = -1, ell_hi = 1, by = 0.001, use.q = FALSE)
ab |
A numeric vector of species abundances or relative abundances. |
ell_low |
Scalar, minimum scaling exponent for diversity profile. |
ell_hi |
Scalar, maximum scaling exponent for diversity profile. |
by |
Scalar, size of step along scaling exponent continuum. |
use.q |
Logical, use traditional q parameterization, where q= 1-l. |
Hill diversity can be viewed as a continuous function of the scaling exponent
\ell
and the relative abundance distribution. As \ell
increases,
so does the emphasis on rare species. It is traditional to view the profile
across \ell = [-1, 1]
or \ell = [-2, 1]
, and other authors
have visualized this with low values of \ell
at the right instead of
left.
Dataframe with the scaling exponent ell
and corresponding
Hill diversity d
divpro(c(20,8,5,4,2,1))
divpro(c(20,8,5,4,2,1), use.q =TRUE) # Option to use q = 1-ell for traditional
# Hill number parameterization
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.