| plot.duane_predict | R Documentation |
Plots observed MTBF, fitted Duane curve, and forecast with optional confidence
bounds for a duane_predict object.
## S3 method for class 'duane_predict'
plot(x, conf_bounds = TRUE, legend = TRUE, legend_pos = "topleft", ...)
x |
An object of class |
conf_bounds |
Logical; include confidence bounds (default: |
legend |
Logical; show the legend (default: |
legend_pos |
Position of the legend (default: |
... |
Additional arguments passed to |
Invisibly returns NULL.
Other Duane functions:
duane(),
plot.duane(),
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)
fc <- predict_duane(fit, times = c(1000, 2000))
plot(fc, main = "Duane Forecast", xlab = "Cumulative Time", ylab = "MTBF")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.