as.mask | R Documentation |
This function is used primarily for plotting covariates, for which the plot.mask function has greater functionality than plot.traps
. It also generates pretty maps of grid cells.
as.mask(x)
x |
an object of class 'traps' |
A mask derived by coercion with as.mask
may behave
unpredictably e.g., in secr.fit
.
If x
is a single-session traps object –
an object of class c("mask", "data.frame")
If x
is a multi-session traps object –
an object of class c("mask", "list"), for which each component is a single-session mask.
make.mask
, plot.mask
,
mask, traps
plot(as.mask(traps(captdata)), dots = FALSE, meshcol = "black")
plot(traps(captdata), add = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.