Learn R Programming

plotROC (version 1.2)

multi_ggroc: Plot multiple ROC curves

Description

Given a list of results computed by calculate_roc, plot the curve using ggplot and sensible defaults

Usage

multi_ggroc(datalist, fpf_string = rep("FPF", length(datalist)),
  tpf_string = rep("TPF", length(datalist)), lty = 1:length(datalist),
  label = NULL, label.adj.x = rep(0, length(datalist)),
  label.adj.y = rep(0, length(datalist)), label.angle = rep(45,
  length(datalist)))

Arguments

datalist
List of data frames as returned by calculate_roc
fpf_string
Column names identifying false positive fraction
tpf_string
Column names identifying true positive fraction
lty
Line types to distinguish curves
label
Optional vector of direct labels for the ROC curve, same length as datalist
label.adj.x
Adjustment for the positioning of the label, same length as datalist
label.adj.y
Adjustment for the positioning of the label, same length as datalist
label.angle
Adjustment for angle of label, same length as datalist

Value

  • A ggplot object