| secrtest | R Documentation |
S3 class for results from secr.test.
## S3 method for class 'secrtest'
print(x, terse = TRUE, ...)
## S3 method for class 'secrtest'
plot(x, stat, ...)
x |
secrtest object from |
terse |
logical; if TRUE only p values are displayed |
stat |
character; names of statistics to plot (default: all) |
... |
other arguments passed to hist by |
An ‘secrtest’ object is output from secr.test.
plot.secrtest plots a histogram of the simulated values.
If plot.secrtest is applied to an object with more than one
statistic then multiple plots are produced, so a multi-figure layout
should be prepared (par(mfrow = c(1,2)) for 2 plots side by
side). Include the hist argument main = '' to suppress the
ugly plot labels, and ensure each statistic is named by statfn so
that the x-axis is labelled correctly (See the Examples in help for
secr.test).
secr.test
## Not run:
tmp <- secr.test(ovenbird.model.1)
if (inherits(tmp, 'secrtest')) {
tmp ## terse print
print(tmp, terse = FALSE)
par(mfrow = c(1,5))
plot(tmp, main = '', xlim=c(0,1), breaks=seq(0,1,0.05))
par(mfrow = c(1,1)) ## reset to default
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.