mask.test: Testing the mask object for a first calls model

View source: R/surveyplots.r

mask.testR Documentation

Testing the mask object for a first calls model

Description

Creates a diagnostic plot that can be used to test the adequacy of a mask for a first calls model.

Usage

mask.test(
  fit = NULL,
  mask,
  traps,
  pars,
  cutoff,
  lower.cutoff,
  surface = FALSE,
  col = c("black", "blue", "red"),
  pincol = "red",
  ...
)

Arguments

fit

A fitted model from fit.ascr.

mask

A matrix with two columns, or a list of such matrices for a multi-session model. Each row provides Cartesian coordinates for the location of a mask point. It is most easily created using create.mask.

traps

A matrix with two columns. Each row provides Cartesian coordinates for the location of a detector. Alternatively, this can be a list of such matrices if detections from multiple detector arrays (or ‘sessions’) are being used to fit a single model.

pars

A named list. Component names are parameter names, and components are values of parameters at which the mask is to be tested. Parameters must include b0.ss, b1.ss, and sigma.ss; see fit.ascr for further details.

cutoff

The upper cutoff value; see fit.ascr for further details.

lower.cutoff

The lower cutoff value; see fit.ascr for further details.

surface

Logical, if TRUE a 3D detection surface is plotted over the mask point locations.

col

Colours of points. Three colours are required if surface is FALSE; otherwise, just one is required.

pincol

Colour of pins when surface is TRUE.

...

Arguments to be passed to plot.


b-steve/ascr documentation built on Aug. 15, 2022, 2:38 p.m.