plot_MS2Decal: Plot bargraph of oversampled 3D-peaks.

View source: R/fcn_plots.R

plot_MS2DecalR Documentation

Plot bargraph of oversampled 3D-peaks.

Description

Per Raw file, at most three n's must be given, i.e. the fraction of 3D-peaks for n=1, n=2 and n=3(or more). The fractions must sum to 1 (=100

Usage

plot_MS2Decal(data)

Arguments

data

A data.frame with columns 'file', 'msErr', 'type'

Value

GGplot object

Examples

  n = c(100, 130, 50)
  data = data.frame(file = repEach(paste(letters[1:3],"\nLTQ [Da]"), n),
                    msErr = c(rnorm(n[1], 0.5), rnorm(n[2], 0.0), rnorm(n[3], -0.5)),
                    type = c("forward", "decoy")[1+(runif(sum(n))>0.95)])
  plot_MS2Decal(data)


PTXQC documentation built on Sept. 21, 2022, 9:10 a.m.