roc_with_ci: plot ROC with CI. Stratified bootstrap 2000 times

roc_with_ciR Documentation

plot ROC with CI. Stratified bootstrap 2000 times

Description

plot ROC with CI. Stratified bootstrap 2000 times

Usage

roc_with_ci(
  label,
  rs,
  font = "Arial",
  palette = "jama",
  legend.pos = c(0.4, 0.2),
  title = NULL,
  fontsize = 16,
  panel = NULL,
  SE.SP = FALSE,
  ci = TRUE
)

Arguments

label

True label

rs

Predicted score

font

Font

panel

panel的第一列为factor,event,class等

SE.SP

Whether to show SE and SP instead of CI of AUC

ci

Default draw CI interval

Value

ggplot object

Examples

data("LIRI")
loonR::roc_with_ci(LIRI$status, LIRI$ANLN,
   panel = data.frame(Evebt=LIRI$status, LIRI[,c(3,4)])  )


roc_with_ci(labels, rs,
            font = "Arial",
            palette = "jama_classic",
            title = "HGD vs Healthy",
            panel = data.frame(Evebt=labels, data)
)

ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.