Description Usage Arguments Value Author(s) References Examples
View source: R/testSpatialCorrelation.R
Takes as input a set of coordinates and a brick or stack of environmental variables and applies Moran.I
(Gittleman and Kot 1990) to analyze the spatial correlation of each variable for the given points
1 | testSpatialCorrelation(xy, variables)
|
xy |
A data frame with coordinates x and y. Column names are irrelevant as long as the first column represents the x coordinate, and the second column represents the y coordinate. |
variables |
A raster brick or stack with environmental variables. Must be in the same reference system of |
A data frame with the following columns:
variable: variable name.
observed: observed autocorrelation, Moran I. Values higher than the random expectation are considered significant.
expected: random expectation of Moran I for the given data.
p.value: p-value of the Moran I analysis.
Blas Benito <blasbenito@gmail.com>. The function Moran.I
is authored by Julien Dutheil <julien.dutheil@univ-montp2.fr> and Emmanuel Paradis.
Gittleman, J. L. and Kot, M. (1990) Adaptation: statistics and a null model for estimating phylogenetic effects. Systematic Zoology, 39, 227–241.
1 2 3 4 5 6 7 | data("virtualSpecies")
data(europe2000)
sp.cor <- testSpatialCorrelation(
xy = virtualSpecies$observed.presence,
variables = europe2000
)
sp.cor
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.