Learn R Programming

synRNASeqNet (version 1.0)

plotPR: Plot PR Curve

Description

A function that automatically produce a plot of the PR (Precision/Recall) Curve.

Usage

plotPR(piNet, ...)

Arguments

piNet
the matrix generated from the performanceIndex function.
...
other parameters to be added to the plot function.

See Also

plotROC

Examples

Run this code
simData <- simulatedData(p = 10, n = 20, mu = 100, sigma = 0.25,
                        ppower = 0.73, noise = FALSE)
counts <- simData$counts
adjMat <- simData$adjMat

miML <- parMIEstimate(counts, method = "ML", unit = "nat", nchips = 2)
valML <- performanceIndex(miML, adjMat)

plotPR(valML, col = "red")

Run the code above in your browser using DataLab