plotBPIs: plotBPIs

View source: R/Spectra_visulization.R

plotBPIsR Documentation

plotBPIs

Description

plotBPIs is used to plot the BPI of all files

Usage

plotBPIs(mSet = NULL, imgName, format = "png", dpi = 72, width = NA)

Arguments

mSet

mSet Object, should be processed by ImportMSData.

imgName

Character, to give the filename for the TIC plotting.

format

Character, to give the format of BPI figures ploted. Can be "jpeg", "png", "pdf", "svg", "tiff" or "ps". Default is "png". (only works for web version)

dpi

Numeric, to define the dpi of the figures. Default is 72. (only works for web version)

width

Numeric, width of the figure (default is NA, usually set it as 6~12)

Value

will return a figure of BPIs

Examples

newPath <- dir(system.file("mzData", package = "mtbls2"), 
full.names = TRUE, recursive = TRUE)[c(10:12)]
data(mSet)
mSet <- updateRawSpectraPath(mSet, newPath)
plotBPIs(mSet)

xia-lab/OptiLCMS documentation built on Nov. 26, 2024, 3:50 a.m.