| calcMantel {MigConnectivity} | R Documentation |
Calculate Mantel correlation (rM) from points and/or distances.
Description
Calculation of rM from POINTS geolocators and/or GPS data, not accounting for uncertainty. If you've already calculated distances between points, you can use those instead.
Usage
calcMantel(
targetPoints = NULL,
originPoints = NULL,
targetDist = NULL,
originDist = NULL
)
Arguments
targetPoints |
A sf |
originPoints |
A sf |
targetDist |
Distances between the target locations of the tracked animals. Symmetric matrix with number of animals rows and columns, although really you only need the lower triangle filled in. |
originDist |
Distances between the origin locations of the tracked animals. Symmetric matrix with number of animals rows and columns, although really you only need the lower triangle filled in. |
Value
calcMantel returns a list with elements:
pointCorrSimple point estimate of Mantel correlation.
originDist, targetDistDistances between each pair of
originPointsand each pair oftargetPoints, respectively, in meters. If you used distances as inputs instead, then these are just what you fed in.
References
Ambrosini, R., A. P. Moller, and N. Saino. 2009. A quantitative measure of migratory connectivity. Journal of Theoretical Biology 257:203-211. doi:10.1016/j.jtbi.2008.11.019
See Also
Examples
data(OVENdata) # Ovenbird
rM0 <- calcMantel(originPoints = OVENdata$originPoints, # Capture Locations
targetPoints = OVENdata$targetPoints) # Target locations
str(rM0)