clplots | R Documentation |
Draws receiver operating characteristic (ROC) plots for particular outcome classes. The ROC statistics for particular classes are obtained by comparing the given class the remaining ones (one versus rest comparison).
clplots(x, ...)
## S3 method for class 'predx'
clplots(x, one_plot = TRUE, ...)
## S3 method for class 'caretx'
clplots(x, newdata = NULL, one_plot = TRUE, ...)
x |
a |
... |
extra arguments passed to |
one_plot |
logical: should all ROC curves be displayed in one plot? |
newdata |
optional, a data frame with the test data. |
The function employs internally multiClassSummary
and
plotting tools from the plotROC
package. clplots
is a S3 generic
function.
a single ggplot
object or a list of ggplot
objects.
For clplots.caretex
a list of ggplots
with plots for the training data,
resamples and, if newdata
is specified, also for the test data set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.