locations | R Documentation |
Plots estimated densities of animal locations, which are latent variables in SECR models.
locations( fit, id = "all", session = 1, infotypes = NULL, combine = FALSE, xlim = NULL, ylim = NULL, mask = get.mask(fit, session), newdata = NULL, levels = NULL, nlevels = 10, density = FALSE, cols = list(combined = 1, capt = 2, ss = 3, bearing = 4, dist = 5, toa = 6), ltys = list(combined = "solid", capt = "solid", ss = "solid", bearing = "solid", dist = "solid", toa = "solid"), trap.col = "red", circle.traps = TRUE, show.labels = TRUE, plot.contours = TRUE, plot.estlocs = FALSE, keep.estlocs = FALSE, plot.arrows = "bearing" %in% fit$infotypes, plot.circles = "dist" %in% fit$infotypes & !("bearing" %in% fit$infotypes), arrow.length = NULL, show.legend = FALSE, show.axes = TRUE, add = FALSE )
fit |
A fitted model from fit.ascr. |
id |
A numeric vector with row numbers from
|
session |
The session with the detector array and invidual(s) to be plotted (for multi-session models only). |
infotypes |
A character vector indicating the type(s) of
information to be used when plotting the estimated density of
location. Elements can be a subset of |
combine |
Logical, if |
xlim |
A numeric vector of length 2, giving the x coordinate range. |
ylim |
A numeric vector of length 2, giving the y coordinate range. |
mask |
A matrix with two columns. Each row provides Cartesian
coordinates for the location of a mask point. The function
create.mask will return a suitable object. The
mask used to fit the model |
newdata |
If a new mask is provided in the |
levels |
A numeric vector giving the values to be associated with the plotted contours. |
nlevels |
The number of contour levels desired. Ignored if
|
density |
Logical, if |
cols |
A list with named components corresponding to each
contour type (i.e., a subset of |
ltys |
The line type of the contours, with the same required
syntax as |
trap.col |
The colour of the points representing detector locations. |
circle.traps |
Logical, if |
show.labels |
Logical, if |
plot.contours |
Logical, if |
plot.estlocs |
Logical, if |
keep.estlocs |
Logical, if |
plot.arrows |
Logical, if |
plot.circles |
Logical, if |
arrow.length |
Numeric, providing the length of the arrows
(only used if |
show.legend |
Logical, if |
show.axes |
Logical, if |
add |
Logical, if |
If keep.estlocs
is TRUE
, then a list
containing a matrix of estimated locations is invisibly
returned. See examples.
locations(example.data$fits$simple.hn, 1) locations(example.data$fits$simple.hn, 1, levels = c(0.50, 0.90, 0.95)) ## Saving estimated locations. estlocs <- locations(example.data$fits$simple.hn, keep.estlocs = TRUE) estlocs ## Not run: fine.mask <- create.mask(example.data$traps, 20, spacing = 0.2) locations(example.data$fits$bearing.hn, 1, infotypes = "all", mask = fine.mask) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.