Learn R Programming

WeibullR.plotly (version 0.3.2)

plotly_duane: Interactive Duane Plot.

Description

This function creates an interactive Duane plot for a duane object. The plot includes options to customize the appearance, such as colors and grid visibility.

Usage

plotly_duane(
  duane_obj,
  showGrid = TRUE,
  main = "Duane Plot",
  xlab = "Cumulative Time",
  ylab = "Cumulative MTBF",
  pointCol = "black",
  fitCol = "black",
  gridCol = "lightgray"
)

Value

The function returns no value. It generates an interactive Duane plot.

Arguments

duane_obj

An object of class 'duane'. This object is created using the `duane` function from the ReliaGrowR package.

showGrid

Show grid (TRUE) or hide grid (FALSE). Default is TRUE.

main

Main title. Default is "Duane Plot".

xlab

X-axis label. Default is "Cumulative Time".

ylab

Y-axis label. Default is "Cumulative MTBF".

pointCol

Color of the point values. Default is "black".

fitCol

Color of the model fit. Default is "black".

gridCol

Color of the grid. Default is "lightgray".

Examples

Run this code
library(ReliaGrowR)
times<-c(100, 200, 300, 400, 500)
failures<-c(1, 2, 1, 3, 2)
fit<-duane(times, failures)
plotly_duane(fit)

Run the code above in your browser using DataLab