R/plot.dsmodel.R

Defines functions plot.dsmodel

Documented in plot.dsmodel

#' Plot a fitted detection function
#'
#' This is just a simple wrapper around [`plot.ds`][mrds::plot.ds]. See the
#' manual page for that function for more information.
#'
#' @param x an object of class `dsmodel`.
#' @param pl.den shading density for histogram (default `0`, no shading)
#' @param ... extra arguments to be passed to [`plot.ds`][mrds::plot.ds].
#' @return `NULL`, just produces a plot.
#' @aliases plot.dsmodel
#' @export
#' @author David L. Miller
#' @importFrom graphics plot
#' @seealso [`add_df_covar_line`][add_df_covar_line]
plot.dsmodel <- function(x, pl.den=0, ...){

  plot(x$ddf, pl.den=pl.den, ...)

  invisible()
}

Try the Distance package in your browser

Any scripts or data that you put into this service are public.

Distance documentation built on July 26, 2023, 5:47 p.m.