plot_fullroc: Plot Full ROC Curve

View source: R/fullroc_functions.R

plot_fullrocR Documentation

Plot Full ROC Curve

Description

Creates a ggplot2 visualization of full ROC data from lineup identification experiments using the Smith, Yang & Wells (2020) method.

Usage

plot_fullroc(
  fullroc_obj,
  show_auc = TRUE,
  point_labels = FALSE,
  title = "Full ROC Curve (Smith, Yang & Wells, 2020)"
)

Arguments

fullroc_obj

Either the list returned by make_fullroc_data() or the lineup_fullroc object returned by make_fullroc(). The two record the ordering method in different places, and both are accepted.

show_auc

Logical. Whether to display AUC value on plot (default = TRUE)

point_labels

Logical. Whether to label points (default = FALSE, can be crowded)

title

Character. Plot title (default = "Full ROC Curve (Smith, Yang & Wells, 2020)")

Value

A ggplot2 object. Being an ordinary ggplot, it can be modified with the usual + syntax, e.g. p + ggplot2::theme_minimal().

Examples

data(lineup_example)
fullroc_result <- make_fullroc_data(lineup_example)
plot_fullroc(fullroc_result)


r4lineups documentation built on Nov. 10, 2026, 1:08 a.m.