autoplot.mccf1: Plot the MCC-F1 curve

Description Usage Arguments Value Examples

View source: R/mccf1.R

Description

'autoplot.mccf1()' plots the MCC-F1 curve using ggplot2.

Usage

1
2
3
## 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

1
2
3
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))

Example output

Loading required package: ggplot2

mccf1 documentation built on Nov. 12, 2019, 1:07 a.m.

Related to autoplot.mccf1 in mccf1...