
Kolmogorov-Smirnoff p-values are plotted on top of each group. High p-values indicate that Andromeda scores for contaminant peptides are equal or higher compared to sample peptide scores, i.e. the probability that sample peptides scores are NOT greater than contaminant peptide scores.
plot_ContUser(data, name_contaminant, extra_limit, subtitle = NULL)
GGplot object
A data.frame with columns 'fc.raw.file', 'variable', 'value'
Name of the contaminant shown in title
Position where a h-line is plotted (for visual guidance)
Optional subtitle for plot
data = data.frame(fc.raw.file = letters[1:3],
variable = c(rep("spectralCount", 3),
rep("intensity", 3),
rep("above.thresh", 3),
rep("score_KS", 3)),
value = c(10, 20, 15, 9, 21, 14, 0, 1, 1, 0.3, 0.01, 0.04))
plot_ContUser(data, "myco", 5, "subtitle")
Run the code above in your browser using DataLab