plotSpatialData {multimark} | R Documentation |
Plot spatial capture-mark-recapture data
Description
This function plots the study area grid, available habitat, and trap coordinates for spatial capture-recapture studies. Activity centers and capture locations can also be plotted.
Usage
plotSpatialData(
mms = NULL,
trapCoords,
studyArea,
centers = NULL,
trapLines = FALSE
)
Arguments
mms |
An optional object of class |
trapCoords |
A matrix of dimension |
studyArea |
A 3-column matrix defining the study area and available habitat. Each row corresponds to a grid cell. The first 2 columns indicate the Cartesian x- and y-coordinate for the centroid of each grid cell, and the third column indicates whether the cell is available habitat (=1) or not (=0). All cells must have the same resolution. Ignored unless |
centers |
An optional vector indicating the grid cell (i.e., the row of |
trapLines |
Logical indicating whether to draw lines from activity centers to respective traps at which each individual was captured. Default is |
Author(s)
Brett T. McClintock
Examples
#Plot the tiger example data
plotSpatialData(trapCoords=tiger$trapCoords,studyArea=tiger$studyArea)