plotComplexRoc: Plot Complex ROC curve

Description Usage Arguments Value Examples

View source: R/functions.R

Description

Plots a ROC curve representing how well a given TPP dataset recovers annotated proteins complexes. The ROC curve is generated based on the supplied protein complex annotation specificity is assessed by comparing the given complex annotation to random permutations of that table, i.e. proteins randomly grouped together.

Usage

1
plotComplexRoc(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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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",
    ComplexRocTable = rocTab)

plotComplexRoc(tpcaTest)

Rtpca documentation built on Nov. 8, 2020, 7:44 p.m.