powered by
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.
plotly_duane( duane_obj, showGrid = TRUE, main = "Duane Plot", xlab = "Cumulative Time", ylab = "Cumulative MTBF", pointCol = "black", fitCol = "black", gridCol = "lightgray" )
The function returns no value. It generates an interactive Duane plot.
An object of class 'duane'. This object is created using the `duane` function from the ReliaGrowR package.
Show grid (TRUE) or hide grid (FALSE). Default is TRUE.
Main title. Default is "Duane Plot".
X-axis label. Default is "Cumulative Time".
Y-axis label. Default is "Cumulative MTBF".
Color of the point values. Default is "black".
Color of the model fit. Default is "black".
Color of the grid. Default is "lightgray".
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