plot.eDNA_p_detect: Plot p(detect)

Description Usage Arguments Details Value Author(s)

View source: R/plot.R

Description

Plot the p(detect eDNA)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'eDNA_p_detect'
plot(
  x,
  y,
  probs = c(0.025, 0.975),
  ylim = c(0, 1),
  point_size = 2.5,
  n_breaks = 5,
  error_width = rel(1.25),
  ...
)

Arguments

x

object of class eDNA_p_detect

y

ignored

probs

probabilities for error bars when a model fit is supplied

ylim

limits on the y axis

point_size

point size for the estimated p(detect)

n_breaks

passed to pretty

error_width

the width of the ends of errorbars

...

additional args passed to plot.stanfit

Details

This allows the visualization of the probability of detection producted by est_p_detect. If the object includes an interval estimate, errorbars are produced with those intervals.

Value

a ggplot object

Author(s)

Matt Espe


artemis documentation built on Sept. 9, 2021, 1:07 a.m.