R/plot_caROC.R

Defines functions plot_caROC

Documented in plot_caROC

plot_caROC <- function(myROC,...){

    message("Plotting the ROC curve...")

    if (myROC$mono_adj == "ROC") {
        linetype = "l"
    } else {
        linetype = "s"
    }

    plot(1-myROC$specificity, myROC$sensitivity, xlab = "1 - Specificity",
         ylab = "Sensitivity", type = linetype, ...)
}

Try the caROC package in your browser

Any scripts or data that you put into this service are public.

caROC documentation built on April 2, 2021, 9:06 a.m.