plot_ContEVD: Plot contaminants from evidence.txt, broken down into...

View source: R/fcn_plots.R

plot_ContEVDR Documentation

Plot contaminants from evidence.txt, broken down into top5-proteins.

Description

Plot contaminants from evidence.txt, broken down into top5-proteins.

Usage

plot_ContEVD(data, top5)

Arguments

data

A data.frame with columns 'fc.raw.file', 'contaminant', 'pname', 'intensity'

top5

Name of the Top-5 Proteins (by relative intensity or whatever seems relevant)

Value

GGplot object

Examples


 data = data.frame(intensity = 1:12, 
                   pname = rep(letters[1:3], 4), 
                   fc.raw.file = rep(paste("f", 1:4), each=3),
                   contaminant = TRUE)
 ## providing more proteins than present... d,e will be ignored
 plot_ContEVD(data, top5 = letters[1:5])
 ## classify 'c' as 'other'
 plot_ContEVD(data, top5 = letters[1:2])


PTXQC documentation built on May 29, 2024, 9:26 a.m.