plot | R Documentation |
Plots of ROC curves.
## S3 method for class 'roc_curve' plot(x, n = 100, emp_points = FALSE, ...) ## S3 method for class 'roc_curves' plot(x, n = 100, emp_points = FALSE, ...) ## S3 method for class 'empirical_curve' plot(x, ...) ## S3 method for class 'empirical_curves' plot(x, ...) ## S3 method for class 'roc_points' plot(x, coord_fixed = TRUE, ...) ## S3 method for class 'mrmc' plot(x, n = 100, ...) ## S3 method for class 'stmc' plot(x, n = 100, ...)
x |
object to plot. |
n |
number of equally spaced false-positive rate points at which to calculate true-positive rates and interpolate through for display of the curve. |
emp_points |
logical indicating whether to overlay empirical ROC points on parametric curves. |
... |
arguments passed to other methods. |
coord_fixed |
logical indicating whether to fix the scales of x and y axes. |
Returns a ggplot object.
roc_curves
curves <- with(VanDyke, roc_curves(truth, rating, groups = list(Test = treatment, Reader = reader)) ) plot(curves)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.