MultipleROCCurves {BranchGLM} | R Documentation |
Plotting Multiple ROC Curves
MultipleROCCurves(
...,
legendpos = "bottomright",
title = "ROC Curves",
colors = NULL,
names = NULL,
lty = 1,
lwd = 1
)
... |
any number of |
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. |
No return value, called to create the plot.
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"))