qMS: Draw a Simple Mass Spectrum Showing the Parent Ion
Description
Given a molecular formula, this function computes the mass of the parent
ion, including any M + n peaks due to Br or Cl, and plots it. Intended to
draw the parent ion region for small organic molecules, especially those
with Br or Cl.
Draws a plot. Returns a data frame giving the peak masses and
relative intensites.
Arguments
f
A character string giving the molecular formula of the molecule of
interest. Order of elements does not matter. Elements should be given
as their atomic symbols, e.g. "Br" not "br".