powered by
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, legend_pos = "bottomright" )
The function does not return a value.
An object of class rga, which contains the results from the RGA model.
rga
Color for the data points (default: "black").
Color for the fitted line (default: "black").
Label for the x-axis (default: "Cumulative Time").
Label for the y-axis (default: "Cumulative Failures").
Title for the plot (default: "Reliability Growth Analysis").
Logical indicating whether to include confidence bounds (default: TRUE).
Logical indicating whether to show the legend (default: TRUE).
Logical indicating whether to use a log-log scale (default: FALSE).
Position of the legend (default: "bottomright").
times <- c(100, 200, 300, 400, 500) failures <- c(1, 2, 1, 3, 2) result <- rga(times, failures) plot_rga(result)
Run the code above in your browser using DataLab