View source: R/createPPlotObjects.R
createPPlotObjects | R Documentation |
Create all the PP plots in one figure for scores from multiple objects
createPPlotObjects(object_list, decoy, score, log10 = TRUE)
object_list |
List of mzID or mzRident objects. If named, the names will be used in the legend of the plot. If not, names will be extracted from the data files in case of mzID or mzRident objects. |
decoy |
|
score |
|
log10 |
|
One PP plot with all original pi0, and a standardized / rescaled PP plot with
all pi0
set to 0.
Elke Debrie, Lieven Clement
library(mzID) ## Use two example files from the mzID package exampleFiles <- system.file( "extdata", c("55merge_omssa.mzid", "55merge_tandem.mzid"), package = "mzID" ) mzObjects <- lapply(exampleFiles, mzID) createPPlotObjects(mzObjects, decoy = "isdecoy", score = c("omssa:evalue", "x\\!tandem:expect"), log10 = TRUE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.