Zeta.scale.regular: Zeta diversity scaling with sample grain using hierarchical...

View source: R/zetadiv.R

Zeta.scale.regularR 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 n[i] x n[i] sites to generate data at a coarser grain.

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

rescale

Boolean value (TRUE or FALSE) indicating if the zeta values should be divided by ΞΆ_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.

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 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 n[i] x n[i] sites to generate data at a coarser grain.

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")

zetadiv documentation built on June 11, 2022, 1:12 a.m.