plot_rga | R Documentation |
This function generates a plot for the results of a Reliability Growth Analysis (RGA).
plot_rga(
rga_obj,
point_col = "black",
line_col = "black",
xlab = "Cumulative Time",
ylab = "Cumulative Failures",
main = "Reliability Growth Analysis",
conf_bounds = TRUE,
legend = TRUE,
log = FALSE
)
rga_obj |
An object of class |
point_col |
Color for the data points (default: "black"). |
line_col |
Color for the fitted line (default: "black"). |
xlab |
Label for the x-axis (default: "Cumulative Time"). |
ylab |
Label for the y-axis (default: "Cumulative Failures"). |
main |
Title for the plot (default: "Reliability Growth Analysis"). |
conf_bounds |
Logical indicating whether to include confidence bounds (default: TRUE). |
legend |
Logical indicating whether to show the legend (default: TRUE). |
log |
Logical indicating whether to use a log-log scale (default: FALSE). |
The function does not return a value.
times <- c(100, 200, 300, 400, 500)
failures <- c(1, 2, 1, 3, 2)
result <- rga(times, failures)
plot_rga(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.