autoplot.mccf1 {mccf1} | R Documentation |
Plot the MCC-F1 curve
Description
'autoplot.mccf1()' plots the MCC-F1 curve using ggplot2.
Usage
## S3 method for class 'mccf1'
autoplot(object, xlab = "F1 score", ylab = "normalized MCC",
...)
Arguments
object |
S3 object of class "mccf1" from the 'mccf1()' |
xlab , ylab |
x- and y- axis annotation (default: "F1 score","normalized MCC") |
... |
further arguments passed to and from method 'ggplot()' |
Value
the ggplots object
Examples
response <- c(rep(1, 1000), rep(0, 10000))
predictor <- c(rbeta(300, 12, 2), rbeta(700, 3, 4), rbeta(10000, 2, 3))
autoplot(mccf1(response, predictor))
[Package mccf1 version 1.1 Index]