plotROC: Utility function to plot multiple ROC curves against each...

Description Usage Arguments Examples

Description

- Comparison helps determine which models favour more TPs or less FPs - Curves are shown overlaid in the same panel upto a max threshold, upon when a new panel will be created.

Usage

1
plotROC(models, res, predictor, cv, colors, titles, maxCurves = 3)

Arguments

models

List - List of model objects (Models expected to have been trained with the "ROC" error metric.

res

String - Response variable of each model

predictor

String - Variable to predict in cv dataset

cv

Data - Cross-validation data set containing Predictor

colors

List - *Optional*; List of colors for each model

maxCurves

Number - *Optional*; # curves per panel, defaults to 3.

labels

List - *Optional*; List of labels for each model

Examples

1
2
3
4
5
6
7
plotROC(
  models    = list(glmFit4, adaFit, rfFit, svmFit, cfFit),
  res       = "Foo",
  predictor = "Bar",
  cv        = valid,
  colors    = c("black", "orange", "yellow", "green", "red")
)

andybeeching/discern documentation built on May 10, 2019, 11:44 a.m.