Plots the fitted detection functions for a distance sampling model and histograms of the distances (for unconditional detection functions) or proportion of observations detected within distance intervals (for conditional detection functions) to compare visually the fitted model and data.
# S3 method for trial
plot(
x,
which = 1:2,
breaks = NULL,
nc = NULL,
maintitle = "",
showlines = TRUE,
showpoints = TRUE,
ylim = c(0, 1),
angle = NULL,
density = NULL,
col = "lightgrey",
jitter = NULL,
divisions = 25,
pages = 0,
xlab = "Distance",
ylab = "Detection probability",
subtitle = TRUE,
...
)
fitted model from ddf
index to specify which plots should be produced.
1 | Unconditional detection function for observer 1 |
2 | Conditional detection function plot (1|2) |
user define breakpoints
number of equal-width bins for histogram
main title line for each plot
logical variable; if TRUE
a line representing the average
detection probability is plotted
logical variable; if TRUE
plots predicted value for each
observation
range of vertical axis; defaults to (0,1)
shading angle for histogram bars.
shading density for histogram bars.
colour for histogram bars.
scaling option for plotting points. Jitter is applied to points by multiplying the fitted value by a random draw from a normal distribution with mean 1 and sd jitter.
number of divisions for averaging line values; default = 25
the number of pages over which to spread the plots. For
example, if pages=1
then all plots will be displayed on one page.
Default is 0, which prompts the user for the next plot to be displayed.
label for x-axis
label for y-axis
if TRUE
, shows plot type as sub-title
other graphical parameters, passed to the plotting functions
(plot
, hist
, lines
, points
, etc)
Jeff Laake, Jon Bishop, David Borchers
The structure of the histogram can be controlled by the user-defined
arguments nc
or breaks
. The observation specific detection
probabilities along with the line representing the fitted average detection
probability.
It is not intended for the user to call plot.io.fi
but its arguments
are documented here. Instead the generic plot
command should be used
and it will call the appropriate function based on the class of the
ddf
object.