View source: R/Spectra_visulization.R
plotSingleTIC | R Documentation |
plotSingleTIC is used to plot the TIC of a certain spectra
plotSingleTIC(
mSet = NULL,
filename,
imagename,
dpi = 72,
width = 7,
format = "png"
)
mSet |
mSet Object, should be processed by ImportMSData. |
filename |
Character, to give the filename for the TIC plotting. |
imagename |
Character, to give the filename of the TIC plotted. (only works for web version) |
dpi |
Numeric, dpi of the figure (default is 72, usually set it as 72, 144, 360) |
width |
Numeric, width of the figure (default is 7, usually set it as 6~12) |
format |
Character, format of the figure (default is 'png', usually can be 'png', 'pdf','tiff','svg','eps','jpg') |
will return a figure of a single TIC
data(mSet);
newPath <- dir(system.file("mzData", package = "mtbls2"),
full.names = TRUE, recursive = TRUE)[c(10, 11, 12)]
mSet <- updateRawSpectraPath(mSet, newPath);
plotSingleTIC(mSet, "MSpos-Ex2-Col0-48h-Ag-2_1-A,3_01_9829.mzData",
"MSpos-Ex2-Col0-48h-Ag-2_1-A,3_01_9829.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.