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.
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"
)
Site-by-coordinate data frame, with sites as rows and coordinates as columns.
Site-by-species presence-absence data frame, with sites as rows and species as columns.
Vector of mapping grains: m[i]
sites are grouped together to generate data at a coarser grain.
Specific number of assemblages or sites at which zeta diversity is computed.
Number of times the sites are rearranged and grouped together for the computation of zeta (see Details).
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.
Number of samples for which the zeta diversity is computed.
Name of a function (as a string) indicating how to combine the coordinates. It can be a basic R-function such as "mean
" or "max
", but also a custom function.
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. Has no effect if normalize
!= FALSE
.
Indicates if the zeta values for each sample should be divided by the total number of species for this specific sample (normalize = "Jaccard"
), by the average number of species per site for this specific sample (normalize = "Sorensen"
), or by the minimum number of species in the sites of this specific sample (normalize = "Simpson"
). Default value is FALSE
, indicating that no normalization is performed.
Boolean value (TRUE or FALSE) indicating if the outputs must be plotted.
Boolean value (TRUE or FALSE) indicating if the standard deviation must be plotted for each grain.
Method to compute distance. Default is "Euclidean
", for Euclidean distance. The other options are (i) "ortho
" for orthodromic distance, if xy correspond to longitudes and latitudes (orthodromic distance is computed using the gdist
function from package Imap
); and (ii) "custom
", in which case the user must provide a distance matrix for dist.custom
.
Distance matrix provided by the user when distance.type
= "custom"
.
The function that must be used for the computation of zeta diversity. Default is "exact
" for calling Zeta.order.ex
. Use "monte carlo
" for calling Zeta.order.mc
.
zeta.scale.min.dist
returns a list containing the following components:
The order of zeta.
The vector of mapping grains: m[i] sites are grouped together to generate data at a coarser grain.
A matrix containing the zeta diversity values over the 'reorder
' computations, for each grain.
A matrix containing the standard deviation of zeta diversity over the 'reorder
' computations, for each grain.
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.
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.
Zeta.decline.mc
, Zeta.order.mc
, Zeta.decline.ex
, Zeta.order.ex
,
# NOT RUN {
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")
# }
Run the code above in your browser using DataLab