View source: R/plot.gg_brier.R
| plot.gg_brier | R Documentation |
gg_brier objectPlot the time-resolved Brier score (default) or running CRPS for a survival forest, optionally overlaid with a 15-85 percent per-subject envelope.
## S3 method for class 'gg_brier'
plot(x, type = c("brier", "crps"), envelope = FALSE, ...)
x |
A |
type |
Which series to plot: |
envelope |
Logical. When |
... |
Extra arguments forwarded to |
A ggplot object.
gg_brier,
get.brier.survival
## Not run:
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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.