Learn R Programming

secr (version 5.0.0)

plotMaskEdge: Outline Around Mask Cells

Description

Plots the outer edge of a mask.

Usage

plotMaskEdge(mask, plt = TRUE, add = FALSE, ...)

Value

A numeric matrix of 4 columns is returned invisibly. The columns may be used as arguments x0, y0, x1, y1 in a call to segments().

Arguments

mask

secr habitat mask object

plt

logical; if TRUE the edge is plotted

add

logical; if TRUE the line is added to an existing plot

...

other line plotting arguments passed to segments

Details

May be slow.

See Also

gridCells

Examples

Run this code

if (FALSE) {
plot(possummask)
plotMaskEdge (possummask, add = TRUE)
}

Run the code above in your browser using DataLab