% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exposure.R
\name{plot.exposure}
\alias{plot.exposure}
\title{Plot Method for exposure Objects.}
\usage{
\method{plot}{exposure}(
  x,
  which = c("all", "exposure", "at_risk", "event_rate"),
  legend = TRUE,
  legend_pos = "topleft",
  ...
)
}
\arguments{
\item{x}{An object of class \code{exposure}.}

\item{which}{Character string selecting which panel(s) to plot. One of
\code{"all"} (default), \code{"exposure"}, \code{"at_risk"}, or
\code{"event_rate"}.}

\item{legend}{Logical; show the legend (default: TRUE).}

\item{legend_pos}{Position of the legend (default: "topleft").}

\item{...}{Additional arguments passed to the underlying \code{plot()}.}
}
\value{
Invisibly returns \code{NULL}.
}
\description{
Produces a multi-panel plot of exposure analysis results. The default
layout shows cumulative exposure and cumulative events versus time
(top panel), the number of systems at risk over time (middle panel),
and the event rate over time (bottom panel). Alternatively, a single
\code{which} panel can be selected.
}
\examples{
id   <- c(1, 1, 1, 2, 2, 2, 3, 3, 3, 3)
time <- c(100, 350, 500, 80, 300, 600, 150, 250, 400, 700)
result <- exposure(id, time)
plot(result)
plot(result, which = "exposure")
}
\seealso{
Other Repairable Systems Analysis: 
\code{\link{exposure}()},
\code{\link{mcf}()},
\code{\link{nhpp}()},
\code{\link{overlay_nhpp}()},
\code{\link{plot.mcf}()},
\code{\link{plot.nhpp}()},
\code{\link{plot.nhpp_predict}()},
\code{\link{predict_nhpp}()},
\code{\link{print.exposure}()},
\code{\link{print.mcf}()},
\code{\link{print.nhpp}()},
\code{\link{print.nhpp_predict}()}
}
\concept{Repairable Systems Analysis}
