R/eval.R
plot_roc.Rd
Plot an ROC curve
plot_roc(roc_obj, main = "ROC curve", add = FALSE, ...)
A list from roc_auc(). (Older lists with an AUC element instead of auc are accepted.)
roc_auc()
AUC
auc
Plot title.
Logical. If TRUE, add the curve to the current plot.
TRUE
Passed to plot or lines.
plot
lines
roc_obj, invisibly.
roc_obj
truth <- matrix(rbinom(100, 1, 0.3), 10, 10); truth <- truth + t(truth) plot_roc(roc_auc(matrix(runif(100), 10, 10), truth))