dr_plot: Plot Predicted Detection Range

View source: R/plot.R

dr_plotR Documentation

Plot Predicted Detection Range

Description

Generic function to plot the predicted detection range.

Usage

dr_plot(x, ...)

## S3 method for class 'data.frame'
dr_plot(
  x,
  facet = TRUE,
  xlab = "Distance",
  ylab = "Proportion of Pings Detected",
  ...
)

## S3 method for class 'drfit'
dr_plot(
  x,
  facet = TRUE,
  xlab = "Distance",
  ylab = "Proportion of Pings Detected",
  ...
)

Arguments

x

The object.

...

Unused parameters.

facet

A flag indicating whether to facet plot by Station.

xlab

A string of the x-axis title.

ylab

A string of the y-axis title.

Methods (by class)

  • data.frame: method to plot predicted detection range from data.frame object

  • drfit: method to plot predicted detection range from drfit object

Examples

dr_plot(detrange::range_obs)
fit <- dr_fit(detrange::range_obs)
dr_plot(fit)

Freshwater-Fish-Ecology-Laboratory/detrange documentation built on Oct. 30, 2024, 1:10 p.m.