sim2side.plot: Plot trapping array and realized capture results of simulated...

View source: R/sim2side.plot.R

sim2side.plotR Documentation

Plot trapping array and realized capture results of simulated data set

Description

This function plots the realized capture results from the simulation function. It plots the juxtaposition of traps and activity centers, differentiating between complete identity individuals (B), partial identity individuals captured on the left side only (L), right side only (R), left and right side but not simultanously (LR), and uncaptured individuals.

Usage

sim2side.plot(data, offset = 0.15, cexX = 1.5, cexB = 3, cexS = 3,
  cex0 = 1, cexT = 1, main = "", plotACs = TRUE, plottimes = 1)

Arguments

data

a list produced by sim2side or in the same format

offset

the amount to offset each camera for double traps

cexX

the cex for representing the cameras

cexB

the cex for complete identity activity centers

cexS

the cex for partial identity activity centers

cex0

the cex for uncaptured activity centers

cexT

the cex for the text indicating B, L, R, or LR captures for each activity center

main

the title for the plot

Author(s)

Ben Augustine

Examples

## Not run: 
N=50
p01=0.13
p02=0.2
lam01=-log(1-p01)
lam02=-log(1-p02)
sigma=0.50
K=5
buff=2
xlim<- c(1,10)
ylim<- c(1,10)
X<- expand.grid(3:8,3:8) #6x6 trapping array
X=cbind(X,1) #add number of cameras at each trap
X[which(X[,2]%in%c(4,7)),3]=2 #switch the second and fifth row of traps to double cameras
#Simulate some data
data=sim2side(N=N,lam01=lam01,lam02=lam02,sigma=sigma,K=K,X=X,buff=buff)
sim2side.plot(data)

## End(Not run)

benaug/SPIM documentation built on April 28, 2024, 7:27 a.m.