plot.brier: Plot a 'brier' class object.

View source: R/brier_oop.R

plot.brierR Documentation

Plot a 'brier' class object.

Description

Plots Brier scores as a function of unique time points.

Usage

## 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(),
  ...
)

Arguments

x

a brier class object.

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 ggplot theme.

...

extra arguments, currently none.

Value

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.

References

  • Graf, E., Schmoor, C., Sauerbrei, W. & Schumacher, M. Assessment and comparison of prognostic classification schemes for survival data. Stat. Med. 18, 2529–2545 (1999).


PiotrTymoszuk/coxExtensions documentation built on Feb. 6, 2024, 10:58 p.m.