plot.ssDF: Function for plotting oSCR state space objects (ssDF)

View source: R/plot.ssDF.R

plot.ssDFR Documentation

Function for plotting oSCR state space objects (ssDF)

Description

Plot the ssDF ojects. The function also allows superimposing traps and individual detections.

Usage

plot.ssDF(ssDF, scrFrame = NULL, collapse = FALSE, spider = FALSE)

Arguments

ssDF

The oSCR formatted state space object (an ssDF)

scrFrame

The oSCR formatted encounter and effort object (an scrFrame). If supplied, traps are autmatically added to the statespace plot.

collapse

Logical. Option to collapse a multi-session ssDF onto a single plot.

spider

Logical. Option to add spatial average detection locations and lines to traps in which those indidivuals were observed.

Details

Returns either a plot of the discrete state space, the state space and traps (if an scrFrame is provded), and the state space, traps, and detections (if an scrFrame is provded and spider = TRUE).

Author(s)

Chris Sutherland

Examples

data("rbs_ecography_mods")
par(mfrow=c(2,2),oma=c(0,0,0,0),mar=c(1,1,1,1))
plot.ssDF(m1$ssDF)                            #just the statespace
plot.ssDF(m1$ssDF,m1$scrFrame)                #statespace and traps
plot.ssDF(m1$ssDF,m1$scrFrame, spider = TRUE) #statespace, traps and detections

jaroyle/oSCR documentation built on Sept. 23, 2023, 12:46 p.m.