eveparam {adiv} | R Documentation |
Parametric Indices of Species Evenness
Description
The function eveparam
calculates parametric evenness indices. The parameter controls the relative importance given to rare versus abundant species in a community.
The function plot.eveparam
plots the results of function eveparam
.
Usage
eveparam(comm, method = c("hill", "tsallis", "renyi"), q = 2, tol = 1e-08)
## S3 method for class 'eveparam'
plot(x, legend = TRUE,
legendposi = "topright", axisLABEL = "Evenness", type = "b",
col = if (is.numeric(x)) NULL
else sample(colors(distinct = TRUE), nrow(x$eve)),
lty = if (is.numeric(x)) NULL else rep(1, nrow(x$eve)),
pch = if (is.numeric(x)) NULL else rep(19, nrow(x$eve)), ...)
Arguments
comm |
a data frame or a matrix typically with communities as rows, species as columns and abundance as entry. |
method |
a string: either "hill" for the Hill numbers (Hill 1973), "tsallis" for the Tsallis or HCDT entropy (Harvda and Charvat 1967; Daroczy 1970; Tsallis 1988), or "renyi" for Renyi's entropy (Renyi 1960). These indices are divided by the value they would have if all species had even abundances. |
q |
a positive numeric or a vector of positive numerics that give values for the |
tol |
numeric tolerance threshold: values between -tol and tol are considered equal to zero. |
x |
an object of class |
legend |
a logical. If TRUE a legend is given with the colour, the type of line (etc.) used to define the evenness curve of each community. |
legendposi |
a string or a numeric that gives the position of the legend to be passed to function |
axisLABEL |
a string to display on the main axis of the plot to designate what we are measuring. The default is |
type |
a string to be passed to the graphic argument |
col |
colours to be passed to the graphic argument |
lty |
type of line (plain, broken etc.) to be passed to the graphic argument |
pch |
type of point (open circle, close circle, square etc.) to be passed to the graphic argument |
... |
other arguments can be added and passed to the functions |
Value
Function eveparam
, if only one value of q
is given, returns a vector with the evenness in the communities. If more than one value of q
is given, a list of two objects is returned:
q |
the vector of values for |
div |
a data frame with the evenness in the communities calculated for all values of |
The function plot.eveparam
returns a graphic.
Author(s)
Sandrine Pavoine sandrine.pavoine@mnhn.fr
References
Daroczy, Z. (1970) Generalized information functions. Information and Control, 16, 36–51.
Havrda, M., Charvat, F. (1967) Quantification method of classification processes: concept of structural alpha-entropy. Kybernatica, 3, 30–35.
Hill, M.O. (1973) Diversity and evenness: a unifying notation and its consequences. Ecology, 54, 427–432.
Renyi, A. (1960) On measures of entropy and information. Proceedings of the Fourth Berkeley Symposium on Mathematical Statistics and Probability, 1, 547–561.
Tsallis, C. (1988) Possible generalization of Boltzmann-Gibbs statistics. Journal of Statistical Physics, 52, 480–487.
Examples
data(batcomm)
ab <- batcomm$ab
plot(eveparam(ab))
plot(eveparam(ab, q=0:4))