Description Usage Arguments Value See Also Examples
Plots a fbroc.paired.roc
object and shows the two paired ROC curves. The confidence
regions for the ROC curves and the performance estimates and confidence bounds for a specified metric
can also be included in the plot.
1 2 3 4 5 6 |
x |
An object of class |
col1 |
Color in which the ROC curve of the first classifier is drawn. |
fill1 |
Color used for areas (confidence regions, AUCs and partial AUCs) belonging to the first ROC curve. |
col2 |
Color in which the ROC curve of the second classifier is drawn. |
fill2 |
Color used for areas (confidence regions, AUCs and partial AUCs) belonging to the second ROC curve. |
print.plot |
Logical specifying whether the plot should be printed. |
show.conf |
Logical specifying whether the confidence region should be plotted. |
conf.level |
Confidence level of the confidence region. |
steps |
Number of discrete steps for the FPR at which the TPR is
calculated. TPR confidence intervals are given for all FPRs in
|
show.metric |
Character specifying which metric to display. See
|
show.area |
Whether to shade the AUC or partial AUC area. Defaults to !show.conf. |
text.size.perf |
Size of the text display when show.metric is set to |
... |
further arguments passed to |
A ggplot, so that the user can customize the plot further.
1 2 3 4 5 6 7 8 9 10 | data(roc.examples)
example <- boot.paired.roc(roc.examples$Cont.Pred, roc.examples$Cont.Pred.Outlier,
roc.examples$True.Class, n.boot = 100)
plot(example) # standard plot, no metric shown
plot(example, show.metric = "auc") # Include information about the AUC
plot(example, show.metric = "auc", show.conf = FALSE) # Show area instead
# Highlight TPR at an FPR of 20%
plot(example, show.metric = "tpr", fpr = 0.2)
plot(example, show.metric = "partial.auc", fpr = c(0.2, 0.4),
show.conf = FALSE, show.partial.auc.warning = FALSE) # Show area
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.