Build interactive Weibull Probability Plots with
WeibullR
, an R package for Weibull analysis, and
plotly
, an interactive web-based graphing library.
To install ReliaPlotR
in R:
install.packages("ReliaPlotR")
Or install the development version:
::install_github("paulgovan/ReliaPlotR") devtools
To build a probability plot, first fit a wblr
object
using the WeibullR
package and then use
plotly_wblr
to build the plot.
library(WeibullR)
library(WeibullR.plotly)
<- c(30, 49, 82, 90, 96)
failures <- wblr.conf(wblr.fit(wblr(failures)))
obj plotly_wblr(obj)
To build a contour plot, use the plotly_contour
function. Note that contour plots are only available where
method.fit='mle'
and method.conf='lrb'
.
<- wblr.conf(wblr.fit(wblr(failures), method.fit = "mle"), method.conf = "lrb")
obj plotly_contour(obj)
ReliaPlotR has several customization options.
plotly_wblr(obj, main = "Weibull Probability Plot", xlab = "Years", ylab = "Failure Probability", confCol = "blue", signif = 4, grid = FALSE)
plotly_contour(obj, main = "Weibull Contour Plot", col = "red", signif = 4, grid = FALSE)
Please note that the ReliaPlotR project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.