View source: R/calcConnectivity.R
| calcMantel | R Documentation |
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.
calcMantel(
targetPoints = NULL,
originPoints = NULL,
targetDist = NULL,
originDist = NULL
)
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. |
calcMantel returns a list with elements:
pointCorrSimple point estimate of Mantel correlation.
originDist, targetDistDistances between each pair of
originPoints and each pair of targetPoints, respectively,
in meters. If you used distances as inputs instead, then these are just
what you fed in.
Ambrosini, R., A. P. Moller, and N. Saino. 2009. A quantitative measure of migratory connectivity. Journal of Theoretical Biology 257:203-211. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1016/j.jtbi.2008.11.019")}
estMantel, calcMC, estMC
data(OVENdata) # Ovenbird
rM0 <- calcMantel(originPoints = OVENdata$originPoints, # Capture Locations
targetPoints = OVENdata$targetPoints) # Target locations
str(rM0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.