View source: R/fullroc_functions.R
| plot_fullroc | R Documentation |
Creates a ggplot2 visualization of full ROC data from lineup identification experiments using the Smith, Yang & Wells (2020) method.
plot_fullroc(
fullroc_obj,
show_auc = TRUE,
point_labels = FALSE,
title = "Full ROC Curve (Smith, Yang & Wells, 2020)"
)
fullroc_obj |
Either the list returned by |
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)") |
A ggplot2 object. Being an ordinary ggplot, it can be modified with
the usual + syntax, e.g. p + ggplot2::theme_minimal().
data(lineup_example)
fullroc_result <- make_fullroc_data(lineup_example)
plot_fullroc(fullroc_result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.