makeROCplot: create density plots of cases and controls and ROC plot

Description Usage Arguments Examples

View source: R/roc.R

Description

create density plots of cases and controls and ROC plot

Usage

1
2
makeROCplot(cases, controls, label = "", xlab = "P(X==1)",
  xlim = NULL, abline = NULL)

Arguments

cases

a factor of predicted classes

controls

a factor of classes to be used as the true results

label

image main label

xlab

label for x axis

xlim

x axis extend

abline

draws vertical abline to indicate best threshold

Examples

1
2
3
4
library(pROC)
cases <- rnorm(100,-1,1.5)
controls <- rnorm(300,1,1.5)
makeROCplot(cases,controls)

protViz/quantable documentation built on Nov. 29, 2021, 10:07 a.m.