plotBPC: plotBPC.

View source: R/plotBPC.R

plotBPCR Documentation

plotBPC.

Description

plotBPC will plot for each item of a list of result-ojects from getMultipleBPC the BPC traces and the spectrum at the scan where the summed intensity of all ions is max.

Usage

plotBPC(
  bpc = NULL,
  mfrow = NULL,
  skip_plots = NULL,
  ylim = NULL,
  col = NULL,
  ids = NULL,
  type = "both",
  ann = c("mdev", "mz", "none")
)

Arguments

bpc

A bpc object (list of intensity matrixes, rt x mz, including several attributes as attached by getMultipleBPC).

mfrow

Specify mfrow explicitely (is optimized internally if NULL to cover n=length(bpc)).

skip_plots

Allows to block certain subplots in the mfrow matrix to bettern align replicates.

ylim

Can be specified specifically, will be adjusted to overall min/max otherwise.

col

Specific color vector for masses may be provided.

ids

Specific plot ids may be explicitely provided.

type

Switch between co-plot of BPC and Spectrum ("both") or BPC alone ("bpc").

ann

Select value to annotate peaks in spectrum. Usually the mass deviation from the expected value in mDa.

Details

not yet

Value

A plot to the graphics device and NULL as invisible.

Examples

# load example raw data
data(res_list)
plotBPC(bpc = res_list[[1]][["bpc"]][c(1:2, 13:14)])
plotBPC(bpc = res_list[[1]][["bpc"]][c(1:2, 13:14)], ann="mz")


HiResTEC documentation built on May 29, 2024, 7:46 a.m.