plotSingleTIC: plotSingleTIC

View source: R/Spectra_visulization.R

plotSingleTICR Documentation

plotSingleTIC

Description

plotSingleTIC is used to plot the TIC of a certain spectra

Usage

plotSingleTIC(
  mSet = NULL,
  filename,
  imagename,
  dpi = 72,
  width = 7,
  format = "png"
)

Arguments

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')

Value

will return a figure of a single TIC

Examples

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")

xia-lab/OptiLCMS documentation built on March 27, 2024, 11:11 a.m.