plot.optimalSpacing: Plot and print methods for optimalSpacing object

plot.optimalSpacingR Documentation

Plot and print methods for optimalSpacing object

Description

Plotsor print results from optimalSpacing.

Usage


## S3 method for class 'optimalSpacing'
plot(x, add = FALSE, plottype = c("both", "RSE", "nrm", "RB", "RMSE"), 
    xtype = c('relative','absolute'), xoffset = 0, ...)
## S3 method for class 'optimalSpacing'
print(x, ...)

Arguments

x

object from optimalSpacing

add

logical; if TRUE will add to existing plot

plottype

character code

xtype

character scale of x-axis

xoffset

numeric offset of points on x-axis

...

other arguments for plot, lines or points

Details

If plottype = "RSE" then RSE(D-hat) is plotted against R (relative detector spacing).
If plottype = "nrm" then the expected numbers of individuals, recaptures and movements are plotted against R.
If plottype = "RB" then the simulated relative bias of D-hat is plotted against R.
If plottype = "rRMSE" then the simulated relative root-mean-square-error of D-hat is plotted against R.

plottype = "both" then both the simulated and approximate RSE are plotted.

If xtype = "absolute" then the scale of the x-axis is R * sigma (from the detectpar attribute of x).

xoffset is used to slightly displace added points to avoid overlap.

The ... argument may be used to pass other plotting arguments to override defaults:

Function Arguments Note
plot `xlab', `ylab', `xlim', `ylim', `las', `xaxs', `yaxs' add = FALSE
points `col', `cex', `pch' optimum and simulated RSE
lines `col', `lwd', `lty' rule-of-thumb RSE

The print method removes attributes before printing.

Value

None

See Also

optimalSpacing


secrdesign documentation built on Jan. 9, 2026, 1:07 a.m.