View source: R/Spectra_visulization.R
plotBPIs | R Documentation |
plotBPIs is used to plot the BPI of all files
plotBPIs(mSet = NULL, imgName, format = "png", dpi = 72, width = NA)
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) |
will return a figure of BPIs
newPath <- dir(system.file("mzData", package = "mtbls2"),
full.names = TRUE, recursive = TRUE)[c(10:12)]
data(mSet)
mSet <- updateRawSpectraPath(mSet, newPath)
plotBPIs(mSet)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.