MultipleROCCurves {BranchGLM}R Documentation

Plotting Multiple ROC Curves

Description

Plotting Multiple ROC Curves

Usage

MultipleROCCurves(
  ...,
  legendpos = "bottomright",
  title = "ROC Curves",
  colors = NULL,
  names = NULL,
  lty = 1,
  lwd = 1
)

Arguments

...

any number of BranchGLMROC objects.

legendpos

a keyword to describe where to place the legend, such as "bottomright". The default is "bottomright"

title

title for the plot.

colors

vector of colors to be used on the ROC curves.

names

vector of names used to create a legend for the ROC curves.

lty

vector of linetypes used to create the ROC curves or a single linetype to be used for all ROC curves.

lwd

vector of linewidths used to create the ROC curves or a single linewidth to be used for all ROC curves.

Value

This only produces a plot, nothing is returned.

Examples

Data <- ToothGrowth

### Logistic ROC
LogisticFit <- BranchGLM(supp ~ ., data = Data, family = "binomial", link = "logit")
LogisticROC <- ROC(LogisticFit)

### Probit ROC
ProbitFit <- BranchGLM(supp ~ ., data = Data, family = "binomial", link = "probit")
ProbitROC <- ROC(ProbitFit)

### Cloglog ROC
CloglogFit <- BranchGLM(supp ~ ., data = Data, family = "binomial", link = "cloglog")
CloglogROC <- ROC(CloglogFit)

### Plotting ROC curves

MultipleROCCurves(LogisticROC, ProbitROC, CloglogROC, 
                  names = c("Logistic ROC", "Probit ROC", "Cloglog ROC"))


[Package BranchGLM version 2.1.5 Index]