Zeta.scale.min.dist {zetadiv} | R Documentation |
Zeta diversity scaling with sample grain dependency based on the minimum distance between sites
Description
Computes zeta diversity scaling with sample grain for a specific order (number of assemblages or sites), increasing grain by sequentially adding sites based on the minimum distance between them.
Usage
Zeta.scale.min.dist(
xy,
data.spec,
m,
order = 1,
reorder = 100,
shuffle = TRUE,
sam = 1000,
method = "mean",
rescale = FALSE,
normalize = FALSE,
plot = TRUE,
sd = TRUE,
distance.type = "Euclidean",
dist.custom = NULL,
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. |
m |
Vector of mapping grains: |
order |
Specific number of assemblages or sites at which zeta diversity is computed. |
reorder |
Number of times the sites are rearranged and grouped together for the computation of zeta (see Details). |
shuffle |
Boolean value (TRUE or FALSE) indicating if the order of the sites must be randomised, which can have an impact on the outputs if some distances are equal. |
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. |
sd |
Boolean value (TRUE or FALSE) indicating if the standard deviation must be plotted for each grain. |
distance.type |
Method to compute distance. Default is " |
dist.custom |
Distance matrix provided by the user when |
zeta.type |
The function that must be used for the computation of zeta diversity. Default is " |
Details
The nearest neighbouring sites (plots, quadrates, or areas of varying shapes) are grouped as spatial clusters of 2, 3, 4, etc. sites, based on the minimum distance between them. Since the procedure is based on the relative distance between sites, the site order can have an impact on the output. The procedure is therefore performed 'reorder' times, for which sites are randomly reordered each time, and the mean zeta is computed. This function is suitable for both regularly and irregularly spaced sites, contiguous or non contiguous (sensu Scheiner et al., 2011). For regularly spaced sites, the use of Zeta.scale.regular
is recommended.
Value
zeta.scale.min.dist
returns a list containing the following components:
order |
The order of zeta. |
m |
The vector of mapping grains: m[i] sites are grouped together to generate data at a coarser grain. |
values |
A matrix containing the zeta diversity values over the ' |
sd |
A matrix containing the standard deviation of zeta diversity over the ' |
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.regular
, rescale.regular
Examples
utils::data(Marion.species)
xy.marion <- Marion.species[,1:2]
data.spec.marion <- Marion.species[,3:33]
dev.new()
zeta.scale.irreg.species <- Zeta.scale.min.dist(xy.marion, data.spec.marion, m = 1:3,
order = 3, reorder = 3, sam = 50, normalize = "Jaccard")