plotPPiRoc: Plot PPI ROC curve

View source: R/functions.R

plotPPiRocR Documentation

Plot PPI ROC curve

Description

Plot PPI ROC curve

Usage

plotPPiRoc(tpcaObj, computeAUC = FALSE)

Arguments

tpcaObj

tpcaResult object

computeAUC

logical parameter indicating whether area under the ROC should be computed and indicated in the lower right corner of the plot

Value

ggplot object of a receiver operating curve (ROC)

Examples

rocTab = data.frame(
    TPR = c(0, 0.1, 0.2, 0.4, 0.5, 0.7, 0.9, 1),
    FPR = c(0, 0.05, 0.1, 0.2, 0.5, 0.7, 0.9, 1)
)

tpcaTest <- new(
    "tpcaResult",
    PPiRocTable = rocTab)

plotPPiRoc(tpcaTest)


nkurzaw/Rtpca documentation built on May 12, 2023, 2:10 p.m.