Generate ROC plots for a single timepoint for timeROC::timeROC() objects or for multiple timepoints.

plot_surv_roc(
  x,
  timepoint,
  col = setNames(palette.colors(length(x)), names(x)),
  lty = setNames(rep.int(1, length(x)), names(x)),
  main = paste0("ROC at day ", timepoint),
  xlab = "1 - Specificity",
  ylab = "Sensitivity",
  legend = TRUE
)

plot_surv_roc_trend(
  x,
  col = setNames(palette.colors(length(x)), names(x)),
  lty = setNames(rep.int(1, length(x)), names(x)),
  main = "AUROC over time",
  xlab = "time t",
  ylab = "AUC (t)"
)

Arguments

x

list of timeROC::ipcwsurvivalROC objects.

timepoint

numeric(1), timepoints for ROC prediction

col

character, colours

lty

numeric, line type

main

character(1), title

xlab

character(1), label x-axis

ylab

character(1), label y-axis

legend

logical(1), plot legend?

Value

double, AUC