## S3 method for class 'capthist':
plot(x, rad = 5, hidetraps = FALSE, tracks = FALSE,
title = TRUE, subtitle = TRUE, add = FALSE, varycol = TRUE,
icolours = NULL, randcol = FALSE,
lab1cap = FALSE, laboffset = 4, ncap = FALSE,
splitocc = NULL, col2 = "green",
cappar = list(cex = 1.3, pch = 16, col = "blue"),
trkpar = list(col = "blue", lwd = 1),
labpar = list(cex = 0.7, col = "black"), ...)capthistvarycol = TRUE)varycol = TRUE)splitocc)par)par)par)lines if tracks are plottedx.eqscplot from the MASS library.
If title = FALSE no title is displayed; if title = TRUE,
the session identifer is used for the title.
If subtitle = FALSE no subtitle is displayed; if subtitle
= TRUE, the subtitle gives the numbers of occasions, detections and
individuals.
If icolours = NULL and varycol = TRUE then a vector of
colours is generated automatically as terrain.colors((nrow(x)+1) * 1.5).
If there are too few values in icolours for the number of
individuals then colours will be re-used.
If x is a multi-session capthist object then a separate plot is
produced for each session. Use par(mfrow = c(nr, nc)) to allow a
grid of plots to be displayed simultaneously (nr rows x nc columns).capthistdemotrap <- make.grid()
tempcapt <- sim.capthist(demotrap,
popn = list(D = 5, buffer = 50),
detectpar = list(g0 = 0.15, sigma = 30))
plot(tempcapt, border = 10, rad = 3, tracks = TRUE,
lab1cap = TRUE, laboffset = 2.5)Run the code above in your browser using DataLab