% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotly_alt.R
\name{plotly_alt}
\alias{plotly_alt}
\title{Interactive ALT Probability Plot.}
\usage{
plotly_alt(
  alt_obj,
  showConf = TRUE,
  showGrid = TRUE,
  main = "ALT Probability Plot",
  xlab = "Time to Failure",
  ylab = "Probability",
  gridCol = "lightgray",
  signif = 3,
  cols = NULL
)
}
\arguments{
\item{alt_obj}{An object of class `'alt'` created by the `WeibullR.ALT` package
and fitted with `alt.parallel()`.}

\item{showConf}{Show Fisher-matrix confidence bounds (TRUE) or not (FALSE).
Default is TRUE.}

\item{showGrid}{Show grid (TRUE) or hide grid (FALSE). Default is TRUE.}

\item{main}{Main title. Default is "ALT Probability Plot".}

\item{xlab}{X-axis label. Default is "Time to Failure".}

\item{ylab}{Y-axis label. Default is "Probability".}

\item{gridCol}{Color of the grid. Default is "lightgray".}

\item{signif}{Significant digits for hover text. Default is 3.}

\item{cols}{Optional character vector of colors, one per stress level. Recycled
to match the number of stress levels. When NULL a 10-color default palette is used.}
}
\value{
A `plotly` object representing the interactive ALT probability plot.
}
\description{
Creates an interactive probability plot for an `alt` object, overlaying one
Weibull or lognormal fit line per stress level on a shared probability paper.
The `alt` object must have been processed through [WeibullR.ALT::alt.parallel()]
before passing to this function.
}
\details{
Building an \code{alt} object requires three steps:
\enumerate{
  \item \code{alt.make()} — bundle the per-stress data sets and choose a
    distribution (\code{"weibull"} or \code{"lognormal"}) and life-stress
    model (\code{"arrhenius"} or \code{"power"}).
  \item \code{alt.parallel()} — fit independent Weibull/lognormal models
    at each stress level (required before calling \code{plotly_alt()}).
  \item \code{alt.fit()} — fit the global life-stress relationship
    (required for \code{plotly_rel()}).
}
The probability paper transformation (log y-axis for Weibull, normal
quantile for lognormal) is the same as in [plotly_wblr()].
}
\examples{
library(WeibullR.ALT)
d1 <- alt.data(c(248, 456, 528, 731, 813, 537), stress = 300)
d2 <- alt.data(c(164, 176, 289), stress = 350)
d3 <- alt.data(c(88, 112, 152), stress = 400)
obj <- alt.fit(
  alt.parallel(
    alt.make(list(d1, d2, d3), dist = "weibull", alt.model = "arrhenius", view_dist_fits = FALSE),
    view_parallel_fits = FALSE
  )
)
plotly_alt(obj)
}
\seealso{
[plotly_rel()] for the life-stress relationship plot using the same \code{alt} object.
}
