fxi.contour (object, i = 1, sessnum = 1, border = 100, nx = 64,
levels = NULL, p = seq(0.1,0.9,0.1), plt = TRUE, add = FALSE,
fitmode = FALSE, plotmode = FALSE, normal = TRUE, ...)
fxi.secr(object, i = 1, sessnum = 1, X, normal = TRUE)
fxi.mode(object, i = 1, sessnum = 1, start = NULL, ...)object$capthist spans
multiple sessionscontour or nlmfxi.contour --
Coordinates of the plotted contours are returned as a list with one
component per polygon. The list is returned invisibly if plt = TRUE.
An additional component `mode' reports the x-y coordinates of the
highest point of each pdf (see Details).
fxi.secr --
Vector of probability densities
fxi.mode --
List with components `x' and `y'fxi.contour computes contours of probability density for one
or more detection histories. Increase nx for smoother
contours. If levels is not set, contour levels are set
to approximate the confidence levels in np.
fxi.secr computes the probability density for a single
detection history; X may contain coordinates for one or several
points; a dataframe or vector (x then y) will be coerced to a matrix.
fxi.mode finds the maximum of the pdf for a single detection history
(i.e. n is of length 1). fxi.mode calls nlm.
fxi.contour with fitmode = TRUE uses fxi.mode to
find the maximum of each pdf. Otherwise the reported mode is an
approximation (mean of coordinates of highest contour).
If i is character it will be matched to row names of
object$capthist (restricted to the relevant session in the case of a
multi-session fit); otherwise it will be interpreted as a row number.
Values of the pdf are optionally normalised by dividing by the
integral of Pr(wi|X) over the habitat mask in object.
If start is not provided then the first detector site is used,
but this is not guaranteed to work.
The ...argument gives additional control over a contour plot; for
example, set drawlabels = FALSE to suppress contour labels.pdot.contour, contourfxi.secr(secrdemo.0, i = 1, X = c(365,605))
plot(secrdemo.0$capthist)
## contour first 5 detection histories
fxi.contour (secrdemo.0, i = 1:5, add = TRUE,
plotmode = TRUE, drawlabels = FALSE)Run the code above in your browser using DataLab