Prox | R Documentation |
The function Prox
simply computes the proportion of (simultaneous) fixes that are proximal, based on some spatial
threshold – dc
(Bertrand et al. 1996). It also facilitates local-level proximity analysis
Prox(traj, traj2, tc = 0, dc = 50, local = FALSE)
traj |
an object of the class |
traj2 |
(optional) same as traj, but for the second group of individuals. See |
tc |
time threshold for determining simultaneous fixes – see function: |
dc |
distance tolerance limit (in appropriate units) for defining when two fixes are spatially together. |
local |
logical value indicating. When local = FALSE (the default) prox returns a data.frame with the global proximity ratio (proportion of all fixes below dc and tc) for each pair of individuals. When local = TRUE, prox returns the input move2 object with the distance to the most proximal fix, and the number of fixes that are considered proximal for each fix in the dataset. |
The function Prox
can be used to test for the presence of attraction (via proximity) in wildlife telemetry data. Prox is simply the proportion of simultaneous fixes within the threshold distance – dc
. The local output (dataframe) can be useful for examining variation in proximity through time.
If local=FALSE
(the default) Prox returns the numeric value of the Prox index for each pair of individuals.
If local=TRUE
Prox returns a move2
containing the original trajectory (or both trajectories) with three additional columns prox (the distance to the nearest proximal fix), prox.id (the id of the nearest proximal fix) and prox.n (the number of individuals with proximal fixes)
Bertrand, M.R., DeNicola, A.J., Beissinger, S.R, Swihart, R.K. (1996) Effects of parturition on home ranges and social affiliations of female white-tailed deer. Journal of Wildlife Management, 60: 899-909.
GetSimultaneous, contacts
data(deer)
#tc = 7.5 minutes, dc = 50 meters
Prox(deer, tc=7.5*60, dc=50)
deer <- Prox(deer, tc=7.5*60, dc=50, local=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.