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: m[i] sites are grouped together to generate data at a coarser grain.

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 "mean" or "max", but also a custom function.

rescale

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.

normalize

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.

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 "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 geodist function from package geodist); and (ii) "custom", in which case the user must provide a distance matrix for dist.custom.

dist.custom

Distance matrix provided by the user when distance.type = "custom".

zeta.type

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.

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 'reorder' computations, for each grain.

sd

A matrix containing the standard deviation of zeta diversity over the 'reorder' computations, 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.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")


[Package zetadiv version 1.2.1 Index]