Skip to contents

Plotting Function for Reliability Growth Analysis

Usage

plot_rga(
  rga_obj,
  point_col = "black",
  line_col = "black",
  xlab = "Cumulative Time",
  ylab = "Cumulative Failures",
  main = "Reliability Growth Analysis"
)

Arguments

rga_obj

An object of class rga, which contains the results from the RGA model.

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").

Value

The function does not return a value.

Examples

times <- c(100, 200, 300, 400, 500)
failures <- c(1, 2, 1, 3, 2)
result <- rga(times, failures)
plot_rga(result)