show.detfn | R Documentation |
Plots an estimated detection function from a model fit generated by fit.ascr.
show.detfn( fit, xlim = NULL, ylim = c(0, 1), main = NULL, xlab = "Distance (m)", ylab = "Detection probability", add = FALSE, ... )
fit |
A fitted model from fit.ascr. |
xlim |
A vector with two elements, giving the x-axis
limits. If |
ylim |
A vector with two elements, giving the y-axis limits. |
main |
The main title (on top) using font, size (character
expansion) and color |
xlab |
X axis label using font, size and color
|
ylab |
Y axis label, same font attributes as |
add |
Logical, if |
... |
Further arguments to be passed to lines. |
## Comparison of two detection functions fitted to the same data show.detfn(example.data$fits$simple.hn, main = "Detection function comparison") show.detfn(example.data$fits$simple.hr, add = TRUE, col = "blue") legend("topright", legend = c("Half normal", "Hazard rate"), lty = 1, col = c("black", "blue"), bg = "white")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.