Description Usage Arguments Examples
create density plots of cases and controls and ROC plot
1 2 | makeROCplot(cases, controls, label = "", xlab = "P(X==1)", xlim = NULL,
abline = NULL)
|
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 |
1 2 3 4 | library(pROC)
cases <- rnorm(100,-1,1.5)
controls <- rnorm(300,1,1.5)
makeROCplot(cases,controls)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.