Map the locations of detectors (traps).
# S3 method for traps
plot(x, border = 100, label = FALSE, offset = c(6,6), add = FALSE,
hidetr = FALSE, detpar = list(), txtpar = list(), bg = "white",
gridlines = !add, gridspace = 100, gridcol = "grey",
markused = FALSE, markvarying = FALSE, markvertices = FALSE,
labelclusters = FALSE, frame = NULL, ...)
None
a traps
object
width of blank margin around the outermost detectors
logical indicating whether a text label should appear by each detector
vector displacement of label from point on x and y axes
logical to add detectors to an existing plot
logical to suppress plotting of detectors
list of named graphical parameters for detectors (passed to par
)
list of named graphical parameters for labels (passed to par
)
background colour
logical for plotting grid lines
spacing of gridlines
colour of gridlines
logical to distinguish detectors used on at least one occasion
logical to distinguish detectors whose usage varies among occasions
logical or 0,1,2 for plotting transect or polygon points
logical to label clusters
data defining a boundary polygon (see boundarytoSF
arguments to pass to eqscplot
offset
may also be a scalar value for equal displacement on the x
and y axes. The hidetr
option is most likely to be used when
plot.traps is called by plot.capthist. See par
and
colours
for more information on setting graphical
parameters. The initial values of graphical parameters are restored on
exit.
Axes are not labeled. Use axis
and mtext
if
necessary.
markvertices
determines whether the vertices of each transect or
polygon will be emphasised by overplotting a point symbol
(detpar$pch). Value may be logical (TRUE, FALSE) or integer (0 = no
points, 1 = terminal vertices only, 2 = all vertices).
From 4.4.0, polygon detectors are shaded with detpar$col and outlined (border) with detpar$fg. Use detpar$col = NA for no shading (transparent polygons).
labelclusters
requires x
to have attributes `clusterID' and
`clustertrap'.
A boundary polygon is plotted in black if frame
is not NULL.
plot
, traps
,
clusterID
temptrap <- make.grid()
plot (temptrap, detpar = list(pch = 16, col = "blue"),
label = TRUE, offset = 7)
Run the code above in your browser using DataLab