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, ...)
}
ziyili20/caROC documentation built on March 28, 2021, 2:52 a.m.