plot.brier | R Documentation |
Plots Brier scores as a function of unique time points.
## S3 method for class 'brier'
plot(
x,
one_plot = TRUE,
palette = c(reference = "gray60", training = "steelblue", test = "coral3"),
linewidth = 0.5,
show_reference = TRUE,
cust_theme = ggplot2::theme_classic(),
...
)
x |
a |
one_plot |
logical, should Brier scores for all datasets be presented in one plot? Defaults to TRUE. |
palette |
defines colors of the Bier score curves. |
linewidth |
line size. |
show_reference |
logical, should the Bier score curve for the reference be plotted? Defaults to TRUE. |
cust_theme |
custom |
... |
extra arguments, currently none. |
a single ggplot
graphics (if one-plot
is TRUE) or a list of
ggplot
plots for the Brier scores obtained for reference,
training and test data each.
Graf, E., Schmoor, C., Sauerbrei, W. & Schumacher, M. Assessment and comparison of prognostic classification schemes for survival data. Stat. Med. 18, 2529–2545 (1999).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.