plot_ROC: Plot ROC curve

Description Usage Value Examples

Description

This function plots ROC curve for survival analysis.

Usage

1
2
3
plot_ROC(scores, labels, force05 = F, palette = "jama",
  legend.pos = c(0.2, 0.15), title = NULL, font = "Arial",
  percent.style = F)

Value

a ggplot2 object of the plot

Examples

1
2
3
4
5
6
library(gfplot)
library(survminer)
data(myeloma)
extrafont::loadfonts()
plot_ROC(myeloma$CCND1, myeloma$event)
plot_ROC(myeloma[, 7:10], myeloma$event)

gflab/gfplot documentation built on Sept. 14, 2020, 12:03 a.m.