Learn R Programming

quantable (version 0.3.6)

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

Description

create density plots of cases and controls and ROC plot

Usage

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

Run this code
# NOT RUN {
library(pROC)
cases <- rnorm(100,-1,1.5)
controls <- rnorm(300,1,1.5)
makeROCplot(cases,controls)

# }

Run the code above in your browser using DataLab