View source: R/dpp_functions.R
| plot_dpp | R Documentation |
Plots DPP at each operating point of the ROC against the confidence threshold that defines it, with the average marked.
plot_dpp(dpp_obj, show_mean = TRUE, show_chance = TRUE, show_dpp = TRUE)
dpp_obj |
List output from make_dpp() or compute_dpp() |
show_mean |
Logical. Draw the average DPP as a dashed line (default = TRUE) |
show_chance |
Logical. Draw the chance reference at DPP = 1, which applies to the unweighted measure only (default = TRUE) |
show_dpp |
Logical. Display the average DPP value on the plot (default = TRUE) |
Points are ordered from the strictest threshold (highest confidence, left) to the most lenient (right), as in Smith et al.'s (2019) Table 4. The operating point with the lowest DPP, the point of maximum utility, is highlighted.
A ggplot2 object
data(lineup_example)
dpp <- make_dpp(lineup_example)
plot_dpp(dpp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.