Computes the expectation of zeta diversity, the number of species shared by multiple assemblages for a range of orders (number of assemblages or sites), using a formula based on the occupancy of the species, and fits the decline to an exponential and a power law relationship.
Zeta.decline.ex(
data.spec,
orders = 1:10,
sd.correct = TRUE,
confint.level = 0.95,
sd.plot = TRUE,
rescale = FALSE,
empty.row = "empty",
plot = TRUE
)
Site-by-species presence-absence data frame, with sites as rows and species as columns.
Range of number of assemblages or sites for which zeta diversity is computed.
Boolean value (TRUE or FALSE) indicating if the standard deviation must be computed with an unbiased estimator (using the number of site combinations - 1 as the denominator) or not (using the number of site combinations as the denominator).
Percentage for the confidence intervals of the coefficients from the regressions.
Boolean value (TRUE or FALSE) indicating if the standard deviation of each zeta diversity value must be plotted.
Boolean value (TRUE or FALSE) indicating if the zeta values should be divided by \(\zeta_1\), to get a range of values between 0 and 1.
Determines how to handle empty rows, i.e. sites with no species. Such sites can cause underestimations of zeta diversity. Options are "empty
" to let the data untreated or "remove
" to remove the empty rows.
Boolean value (TRUE or FALSE) indicating if the outputs must be plotted.
Zeta.decline.ex
returns a list containing the following components:
The number of assemblages or sites for which the zeta diversity was computed.
The number of possible combinations of sites for the chosen orders.
The zeta diversity values.
The zeta diversity standard deviation values.
The ratio of zeta diversity values by the zeta diversity values at the lower order \(\zeta_i / \zeta_{i-1}\).
Object of class "lm
", containing the output of the exponential regression.
The confidence intervals of the coefficients of the exponential regression.
Object of class "lm
", containing the output of the power law regression.
The confidence intervals of the coefficients of the power law regression.
AIC values for zeta.exp
and zeta.pl
.
Zeta.decline.ex
is much faster than Zeta.decline.mc
to compute the exact value of zeta diversity when the number of species is lower than \(C^N_{i}\), where N is the total number of sites and i is the order of zeta.
sd.correct
should be set to TRUE
if the assemblages represent a subsample of the whole system. It can be set to FALSE
if the sampling is exhaustive, for example in case of a continuous regular grid covering the whole study area.
The exponential and the power law fit are performed using linear regressions on log-transformed data (only the zeta values are log-transformed for the exponential fit, and both the orders and the zeta values are log-transformed for the power law fit).
Hui C. & McGeoch M.A. (2014). Zeta diversity as a concept and metric that unifies incidence-based biodiversity patterns. The American Naturalist, 184, 684-694.
McGeoch M. A., Latombe G., Andrew N. R., Nakagawa S., Nipperess D. A., Roige M., Marzinelli E. M., Campbell A. H., Verges A., Thomas T., Steinberg P. D., Selwood K. E., Henriksen M. V. & Hui C. (2019). Measuring continuous compositional change using decline and decay in zeta diversity. Ecology, 100(11), e02832.
Zeta.decline.mc
, Zeta.order.mc
, Zeta.order.ex
, Plot.zeta.decline
# NOT RUN {
utils::data(bird.spec.coarse)
data.spec.bird <- bird.spec.coarse[,3:193]
dev.new(width = 12, height = 4)
zeta.bird <- Zeta.decline.ex(data.spec.bird, orders = 1:5)
zeta.bird
##########
utils::data(Marion.species)
xy.marion <- Marion.species[,1:2]
data.spec.marion <- Marion.species[,3:33]
dev.new(width = 12, height = 4)
zeta.marion <- Zeta.decline.ex(data.spec.marion, orders = 1:5)
zeta.marion
# }
Run the code above in your browser using DataLab