plot_nist
Plots the mass spectra of a NIST compound.
plot_nist(nistlist, k, ms, title = "NIST Mass Spectrum")
A ggplot object. A line plot of the mass spectra data. The mass values vs the percent intensity values as a percent of the highest intensity.
a list object, a list of compound MS data from the NIST MS Library database, ideally the output of nist_list().
a integer object, the index of the NIST compound in the nistlist input.
a data.frame object, a data frame of the mass values and the percent intensity values, ideally the output of find_ms().
a string object. Title placed at the top of the plot. Default title "Mass Spectrum".
This function produces line plot of the mass spectra data from the
sample on top, and the mass spectrum from a NIST compound entry on the
bottom. The mass values vs the percent intensity values as a percent of the
highest intensity using ggplot
from ggplot2 package
ggplot2gcxgclab.