testSpatialCorrelation: Spatial correlation of presence records over predictive...

Description Usage Arguments Value Author(s) References Examples

View source: R/testSpatialCorrelation.R

Description

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

Usage

1
testSpatialCorrelation(xy, variables)

Arguments

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 xy.

Value

A data frame with the following columns:

Author(s)

Blas Benito <blasbenito@gmail.com>. The function Moran.I is authored by Julien Dutheil <julien.dutheil@univ-montp2.fr> and Emmanuel Paradis.

References

Gittleman, J. L. and Kot, M. (1990) Adaptation: statistics and a null model for estimating phylogenetic effects. Systematic Zoology, 39, 227–241.

Examples

1
2
3
4
5
6
7
data("virtualSpecies")
data(europe2000)
sp.cor <- testSpatialCorrelation(
  xy = virtualSpecies$observed.presence,
  variables = europe2000
)
sp.cor

BlasBenito/SDMworkshop documentation built on March 4, 2020, 4:16 a.m.