Learn R Programming

plotROC (version 1.2)

ggroc: Plot an ROC curve

Description

Given a result computed by calculate_roc, plot the curve using ggplot and sensible defaults

Usage

ggroc(rocdata, fpf_string = "FPF", tpf_string = "TPF", ci = FALSE,
  label = NULL, label.adj.x = 0, label.adj.y = 0, label.angle = 45)

Arguments

rocdata
Data frame as returned by calculate_roc
fpf_string
Column name identifying false positive fraction
tpf_string
Column name identifying true positive fraction
ci
Logical, if TRUE will create invisible confidence regions for use in the interactive plot
label
Optional direct label for the ROC curve
label.adj.x
Adjustment for the positioning of the label
label.adj.y
Adjustment for the positioning of the label
label.angle
Adjustment for angle of label

Value

  • A ggplot object