plotEIC: Plotting EIC of one peak

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/plotEIC.R

Description

This function can be used to plot the EIC profile of a peak, where the peak has been optianed by getPeak or getEIC functions. The plot also shows a pseudo peak, which is an illustratiion based on reference spectrum.

Usage

1
plotEIC(peakEIC = list(), fig.name = character())

Arguments

peakEIC

a list inclduing the EIC information of a peak

fig.name

a character vector (string), if provided, the figure is saved in pdf format with this name.

Details

This function plots the EIC profile of one peak. The peak information can be obtained using getPeak or getEIC finctions. The peak profile includes the measured intensities in the raw data correponding to a certain target in on specific run. The intensities are plotted versus recorded retention time in the sample. Different colors are used for different fragments and the mass of each fragment is included in the legend of the plot. Also, to make the visual comparison between the true and reference spcetra available, a pseudo peak based on the reference spectra is provided in a subplot showing the ratios between fragments. Finally, the expected and actual retention times of the target is shown in gray and red respectively.

Value

A logical value which is TRUE if the resulted plot is saved

Author(s)

Mo R. Nezami Ranjbar

References

http://omics.georgetown.edu/SIMAT.html

See Also

plotTIC

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
    # load an RData file including a single run data acquired by readCDF
    data("Run")
    
    # load targets information
    data(Targets)
    
    # get all the corresponding peaks of the target list
    runPeaks <- getPeak(Run = Run, Targets = Targets)
    
    # plot the EIC of the first target
    plotEIC(runPeaks[[1]][[1]])

SIMAT documentation built on Nov. 8, 2020, 8:27 p.m.