| plot.duane | R Documentation |
Generates a Duane plot (log-log or linear scale) with fitted regression line and optional confidence bounds.
## S3 method for class 'duane'
plot(
x,
log = TRUE,
conf_bounds = TRUE,
legend = TRUE,
legend_pos = "topleft",
conf.int = NULL,
legend.pos = NULL,
...
)
x |
An object of class |
log |
Logical; whether to use logarithmic scales for axes (default: |
conf_bounds |
Logical; whether to plot confidence bounds (default: |
legend |
Logical; whether to include a legend (default: TRUE). |
legend_pos |
Position of the legend (default: "topleft"). |
conf.int |
Deprecated. Use |
legend.pos |
Deprecated. Use |
... |
Further arguments passed to |
Invisibly returns NULL.
Other Duane functions:
duane(),
plot.duane_predict(),
predict_duane(),
print.duane(),
print.duane_predict()
times <- c(100, 200, 300, 400, 500)
failures <- c(1, 2, 1, 3, 2)
fit <- duane(times, failures)
plot(fit, main = "Duane Plot", xlab = "Cumulative Time", ylab = "Cumulative MTBF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.