dr_plot_predict: Plot Predicted Detection Range

View source: R/plot-predict.R

dr_plot_predictR Documentation

Plot Predicted Detection Range

Description

Generic function to plot the predicted detection range.

Usage

dr_plot_predict(x, ...)

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

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

Arguments

x

The object.

...

Unused parameters.

xlab

A string of the x-axis title.

ylab

A string of the y-axis title.

facet

A flag indicating whether to facet plot by Station.

predict_de

A tibble of the output of dr_predict_de.

Methods (by class)

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

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

Examples

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

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