plot.bmd | R Documentation |
plot.bmd
displays benchmark dose values with options to plot confidence intervals as well.
plot.bmd(x, ..., interval = c("BMDL", "twosided", "none"))
x |
an object of class 'bmd'. |
... |
arguments to be passed on to |
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"). |
This function is a simple function to plot benchmark dose values along with the fitted curve.
Creates a plot. No value returned.
Jens Riis Baalkilde.
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.