Description Usage Arguments Details Value See Also
View source: R/pickAdductPairImage.R
Interactively display MSI images for ion pairs of interest by clicking on the mass spectrum to select a specific peak (either in the role of a parent or adduct ion). This allows a visual inspection of the MSI image for the pair, to evaluate if the ions are spatially correlated.
1 2 |
d |
msimat object used to plot the mass spectrum |
diff |
massdiff object containing the annotated mass differences of
interest, with adduct matches found by |
which |
character; Whether the peak being selected represents the parent or adduct ion |
match |
character; Name of the adduct annotation to visualize. If
|
nrow |
numeric |
ncol |
numeric; Number of rows or columns in the MS image. This will be
passed to |
The dimensions of the plot must be known and supplied to either the
nrow
or ncol
options. Otherwise, no MSI images will be drawn
and only the numerical data reported. Parent and adduct ion images will be
plotted side by side, with a new dev object for each pair.
massdiff object with all mass pairs that include the peak of interest
subsetted from the object passed to argument diff
pointsAdducts
Overlay adduct or parent ion peaks
from a massdiff object onto a mass spectrum plot
plot.msimat
Plot method for msimat object to draw
mass spectrum with total intensities
identify.msimat
Identify peaks on mass spectrum by
clicking on the plot
image.msimat
Image method for msimat object, to
render MSI image for peaks of interest.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.