Description Usage Arguments Details Value Note Author(s) References See Also Examples
Fit a generalized dissimilarity model in ecological similarity of assemblages (including zero similarity points) between two sites as a function of their distance apart along an environmental gradient.
1 2 | dist.decay(gradient, counts, coords, nboots = 1000, dis.fun = "vegdist",
method = "bray", like.pairs = T)
|
gradient |
A vector of environmental values of interests |
counts |
A dataframe of community matrix of species abundance data |
coords |
A dataframe of 2 column with x and y coordinates of the sampling site. The same sites will be remove from bootsrap procedures if like.pairs = TRUE |
nboots |
A integer number indicating the numbers of bootsrap resampling |
dis.fun |
Matching function to compute dissimilarity. The default is |
method |
Dissimilarity index, partial match to "manhattan", "euclidean", "canberra", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup" , "binomial", "chao", "cao" or "mahalanobis". |
like.pairs |
Logical, whether to remove the like pairs or not. During bootstrap resampling, because the sites are randomly resampled with replacement and hence there may be multiple copies of some sites. like.pairs = TRUE removes those site pairs having zero separation distance. |
This funtion fits a generalized linear models (GLMs) using quasibinomial distribution (with a log-link function) for ecological similarity of assemblages between any two sites as a function of their distance apart along a environmental gradient. A modified bootstrap method was used to estimate the bootraped mean and standard error of model parameters (alpha, beta), s=alpha*exp(-beta*d), where s is assemblage similarity and d is environmental distance, and then use these parameters to calculate the similarity at zero distance (s0) and the halving distance (halfd) for which the similarity between sites decreased by 50% following the method decribed by Millar et al. (2010).
A list of data frames, including:
A data frame of bootstrap estimate of GLM coefficients, (intercept) and x, as well as beta diversity at zero distance (s0) and halving distance (halfd
A data frame of bootsrap summary statistics
A data frame of distance difference, bootstrap predictions and 95% confidence intervals
Other information
This function models the complement of dissimilarity (similarity).
Chih-Lin Wei <chihlinwei@gmail.com>
Millar, R.B., Anderson, M.J., Tolimieri, N., 2011. Much ado about nothings: using zero similarity points in distance-decay curves. Ecology 92, 1717<U+FFFD><U+FFFD>1722. doi:10.1890/11-0029.1
1 2 3 4 5 6 7 | # Ostrocode exponential distance decay
data(os)
dd <- dist.decay(gradient=os$dist, counts=os[, -1:-7], coords=os[, c("longitude", "latitude")], nboots=1000, dis.fun = "vegdist", method = "bray", like.pairs=T)
x <- vegdist(os$dist, method = "euclidean")
y <- 1-vegdist(os[, -1:-7], method = "bray")
plot(x, y)
lines(dd$Predictions[, "x"], dd$Predictions[,"mean"], col="red", lwd=2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.