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(traj1, traj2, tc = 0, dc = 50, local = FALSE, GetSimultaneous = TRUE)
If local=FALSE
(the default) Prox returns the numeric value of the Prox index.
If local=TRUE
Prox returns a dataframe containing the date/times of all simultaneous fixes from traj1
,
and in the case of GetSimultaneous = FALSE
the time of the fixes that were deemed simultaneous in traj2
.
If GetSimultaneous = TRUE
(the default) the Prox considers only the simultaneous fixes, as defined in GetSimultaneous
. If FALSE
Prox considers all the fixes in traj1
relative to traj2
. The latter functionality is useful when the time between fixes for one trajectory (traj1
) is much shorter than the second trajectory.
an object of the class ltraj
which contains the time-stamped
movement fixes of the first object. Note this object must be a type II
ltraj
object. For more information on objects of this type see help(ltraj)
.
same as traj1
.
time threshold for determining simultaneous fixes -- see function: GetSimultaneous
.
distance tolerance limit (in appropriate units) for defining when two fixes are spatially together.
logical value indicating whether or not a dataframe, containing the distance between each simultaneous fix, should be returned.
logical value indicating whether proximity analysis is based on simultaneous fixes (if TRUE
the default) -- see function GetSimultaneous
or (if FALSE
) a one-way mapping from traj1
to traj2
is used.
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.
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)
deer37 <- deer[1]
deer38 <- deer[2]
#tc = 7.5 minutes, dc = 50 meters
Prox(deer37, deer38, tc=7.5*60, dc=50)
df <- Prox(deer37, deer38, tc=7.5*60, dc=50, local=TRUE)
Run the code above in your browser using DataLab