ROCplot_eumelareg: Plot ROC curve with youden index and auc.

View source: R/ROCplot_eumelareg.R

ROCplot_eumelaregR Documentation

Plot ROC curve with youden index and auc.

Description

This function plots a default EuMelaReg ROC curve using the package plotROC(). By default Youden-Index and AUC are printed and displayed in the graph. Additional ggplot layers can be added to the graph.

Usage

ROCplot_eumelareg(
  predictions,
  labels,
  print.auc = TRUE,
  print.cutoff = TRUE,
  cutoff.method = c("youden", "closest.topleft"),
  auc.label.x = 0.7,
  auc.label.y = 0.1,
  cutoff.label.x = 0.15,
  cutoff.label.y = 0.9,
  textsize = 12
)

Arguments

predictions

vector containing predicted probabilities obtained from a prediction model.

labels

observed labels of two outcome possibilities. Preferred are binomial values with 0 = control and 1 = case.

print.auc

logical value to decide whether auc should be printed within plot. Default is TRUE.

print.cutoff

logical value to decide whether cutoff should be printed within plot. Default is TRUE.

cutoff.method

method to be used to calculate cutoff. Allowed values are "youden" and "closest.topleft".

auc.label.x

x-coordinate of auc label.

auc.label.y

y-coordinate of auc label.

cutoff.label.x

x-coordinate of cutoff label.

cutoff.label.y

y-coordinate of cutoff label

textsize

argument to define size of axes title, axes text and plot text.


MBender1992/emR documentation built on Feb. 18, 2025, 9:21 a.m.