% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.gg_brier.R
\name{plot.gg_brier}
\alias{plot.gg_brier}
\title{Plot a \code{\link{gg_brier}} object}
\usage{
\method{plot}{gg_brier}(x, type = c("brier", "crps"), envelope = FALSE, ...)
}
\arguments{
\item{x}{A \code{\link{gg_brier}} object.}

\item{type}{Which series to plot: \code{"brier"} (default) or
\code{"crps"}.}

\item{envelope}{Logical. When \code{TRUE}, overlays a ribbon spanning
the 15th-85th percentile of per-subject Brier (or running CRPS)
contributions at each time, around the overall line. When \code{FALSE}
(default), draws the overall series only.}

\item{...}{Extra arguments forwarded to \code{geom_line()}.}
}
\value{
A \code{ggplot} object.
}
\description{
Plot the time-resolved Brier score (default) or running CRPS for a
survival forest, optionally overlaid with a 15-85 percent per-subject
envelope.
}
\examples{
\dontrun{
data(pbc, package = "randomForestSRC")
rf <- randomForestSRC::rfsrc(Surv(days, status) ~ ., data = pbc,
                             nsplit = 10)
gg_dta <- gg_brier(rf)
plot(gg_dta)
plot(gg_dta, type = "crps")
plot(gg_dta, envelope = TRUE)   # adds 15-85\% envelope
}

}
\seealso{
\code{\link{gg_brier}},
  \code{\link[randomForestSRC]{get.brier.survival}}
}
