% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotly_contour.R
\name{plotly_contour}
\alias{plotly_contour}
\title{Interactive Contour Plot}
\usage{
plotly_contour(
  wblr_obj,
  main = "Contour Plot",
  xlab = "Eta",
  ylab = "Beta",
  showGrid = TRUE,
  cols = NULL,
  gridCol = "lightgray",
  signif = 3
)
}
\arguments{
\item{wblr_obj}{A single `wblr` object or a list of `wblr` objects. Each object
must have contours generated using `method.conf = 'lrb'`.}

\item{main}{Main title for the plot.}

\item{xlab}{X-axis label (typically Eta or Sigmalog).}

\item{ylab}{Y-axis label (typically Beta or Mulog).}

\item{showGrid}{Logical; whether to show grid lines (default TRUE).}

\item{cols}{Optional vector of colors for each contour/estimate pair. If not provided,
colors are chosen from a default palette.}

\item{gridCol}{Color of the grid lines (default 'lightgray').}

\item{signif}{Number of significant digits to display for estimates and contour coordinates.
Defaults to 3.}
}
\value{
A `plotly` object representing the interactive contour plot.
}
\description{
This function creates an interactive contour plot for one or more
`wblr` objects, each assumed to have confidence contours generated via
`method.conf = 'lrb'`. The function overlays all contours in a single plot and displays
their respective MLE point estimates.
}
\details{
Confidence contours require a likelihood-ratio-based (\code{method.conf = 'lrb'})
MLE fit (\code{method.fit = 'mle'}). The contour traces the locus of
(\eqn{\eta}, \eqn{\beta}) pairs whose log-likelihood falls within a
chi-squared critical value of the MLE peak, giving a joint confidence
region for the two Weibull parameters. The MLE point estimate is shown as
a marker at the center of each contour.
}
\examples{
library(WeibullR)
library(ReliaPlotR)

failures1 <- c(30, 49, 82, 90, 96)
failures2 <- c(20, 40, 60, 80, 100)
obj1 <- wblr.conf(wblr.fit(wblr(failures1), method.fit = "mle"), method.conf = "lrb")
obj2 <- wblr.conf(wblr.fit(wblr(failures2), method.fit = "mle"), method.conf = "lrb")
plotly_contour(list(obj1, obj2), main = "Overlayed Contours")

}
\seealso{
[plotly_wblr()] for probability plots using the same \code{wblr} objects.
}
