Learn R Programming

plotROC (version 1.2)

plot_journal_roc: Plot an ROC curve for use in print

Description

Given a ggroc object, creates a plot suitable for print, with sensible defaults

Usage

plot_journal_roc(ggroc_p, rocdata, font.size = 3, n.cuts = 20,
  ci.at = NULL, alpha = 0.3)

Arguments

ggroc_p
An object as returned by ggroc or multi_ggroc. It can be modified with annotations, themes, etc.
rocdata
An object as returned by calculate_roc.
font.size
Integer that determines font size of cutoff labels
n.cuts
Number of cutoffs to display
ci.at
Cutoff values at which to plot confidence regions, if non-NULL, rocdata must contain limits for the confidence region, as returned by calculate_roc
alpha
Alpha level for confidence region boxes. Defaults to 0.3. Must be between 0 and 1

Value

  • A ggplot object