View source: R/Spectra_visulization.R
PlotSpectraBPIadj | R Documentation |
This function is used to plot the adjust BPI (Base Peak Ion)
PlotSpectraBPIadj(mSet = NULL, imgName, format = "png", dpi = 72, width = NA)
mSet |
mSet object, usually generated after the peakannotaion finished here. |
imgName |
Character, to give the name of BPI figures ploted. |
format |
Character, to give the format of BPI figures ploted. Can be "jpeg", "png", "pdf", "svg", "tiff" or "ps". Default is "png". |
dpi |
Numeric, to define the dpi of the figures. Default is 72. |
width |
Numeric, to define the width of the figure. Height = width * 0.618. |
will return a figure of adjusted BPIs
data(mSet);
newPath <- dir(system.file("mzData", package = "mtbls2"),
full.names = TRUE, recursive = TRUE)[c(10, 11, 12)]
mSet <- updateRawSpectraPath(mSet, newPath);
PlotSpectraBPIadj(mSet);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.