Zeta.scale.regular {zetadiv} | R Documentation |
Zeta diversity scaling with sample grain using hierarchical increases in grain size
Description
Computes zeta diversity scaling with sample grain for a specific order (number of assemblages or sites), increasing grain by hierarchically nesting of regularly spaced sites.
Usage
Zeta.scale.regular(
xy,
data.spec,
n,
order = 1,
sam = 1000,
method = "mean",
rescale = FALSE,
normalize = FALSE,
plot = TRUE,
zeta.type = "exact"
)
Arguments
xy |
Site-by-coordinate data frame, with sites as rows and coordinates as columns. |
data.spec |
Site-by-species presence-absence data frame, with sites as rows and species as columns. |
n |
Vector of mapping grains: regularly spaced sites are grouped as |
order |
Specific number of assemblages or sites at which zeta diversity is computed. |
sam |
Number of samples for which the zeta diversity is computed. |
method |
Name of a function (as a string) indicating how to combine the coordinates. It can be a basic R-function such as " |
rescale |
Boolean value (TRUE or FALSE) indicating if the zeta values should be divided by |
normalize |
Indicates if the zeta values for each sample should be divided by the total number of species for this specific sample ( |
plot |
Boolean value (TRUE or FALSE) indicating if the outputs must be plotted. |
zeta.type |
The function that must be used for the computation of zeta diversity. Default is " |
Details
The sites (plots or quadrates) are incrementally aggregated as nearest neighbouring groups of 4, 9, etc. sites, using a nested approach, starting from the lowest x and y, to increase the grain. The sites can be spatially contiguous or discontiguous, as long as they are regularly spaced (see Scheiner et al., 2011). If the total number of sites is not a multiple of n[i]
x n[i]
, the extra sites are discarded.
Value
Zeta.scale.regular
returns a list containing the following components:
order |
The order of zeta. |
n |
The vector of mapping grains: regularly spaced sites are grouped as |
values |
The zeta diversity values for each grain. |
sd |
The standard deviation of zeta diversity for each grain. |
References
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.
Scheiner S.M., Chiarucci A., Fox G.A., Helmus M.R., McGlinn D.J. & Willig M.R. (2011). The underpinnings of the relationship of species richness with space and time. Ecological Monographs, 81, 195-213.
See Also
Zeta.decline.mc
, Zeta.order.mc
, Zeta.decline.ex
, Zeta.order.ex
Zeta.scale.min.dist
, rescale.regular
, rescale.min.dist
Examples
utils::data(bird.spec.fine)
xy.bird <- bird.spec.fine[1:400,1:2]
data.spec.bird <- bird.spec.fine[1:400,3:192]
dev.new()
##sam = 25 is used here for fast execution, but a higher value is advised
zeta.scale.reg <- Zeta.scale.regular(xy.bird, data.spec.bird, n = 1:3, order = 3,
sam = 25, normalize = "Jaccard", zeta.type="monte carlo")