plot.bmd: Plotting benchmark doses

View source: R/plot.bmd.R

plot.bmdR Documentation

Plotting benchmark doses

Description

plot.bmd displays benchmark dose values with options to plot confidence intervals as well.

Usage

  plot.bmd(x, ..., interval = c("BMDL", "twosided", "none"))

Arguments

x

an object of class 'bmd'.

...

arguments to be passed on to plot.drc, if add = FALSE

interval

option to plot only the lower limit of the confidence interval for the benchmark dose ("BMDL", default), both limit of the confidence interval ("twosided"), or no confidence interval ("none").

Details

This function is a simple function to plot benchmark dose values along with the fitted curve.

Value

Creates a plot. No value returned.

Author(s)

Jens Riis Baalkilde.

Examples


## Fitting model and calculating BMD. 
model <- drm(rootl ~ conc, data = ryegrass, fct = LL.4())
bmd0 <- bmd(model, bmr = 0.1, backgType = "modelBased", def = "relative")

## Plotting
plot(bmd0)

# Plot both limits of confidence interval
plot(bmd0, interval = "twosided")

# Pass argument to plot.bmd to plot confidence band around curve
plot(bmd0, type = "confidence")



DoseResponse/bmd documentation built on March 29, 2025, 4:36 p.m.