Plot ms2 spectra or ms2 match plot.
ms2_plot(
spectrum1,
spectrum2,
spectrum1_name = "spectrum1",
spectrum2_name = "spectrum2",
range.mz,
ppm.tol = 30,
mz.ppm.thr = 400,
xlab = "Mass to charge ratio (m/z)",
ylab = "Relative intensity",
col1 = "red",
col2 = "black",
title.size = 15,
lab.size = 15,
axis.text.size = 15,
legend.title.size = 15,
legend.text.size = 15,
interactive_plot = FALSE
)
Spectrum 1.
Spectrum 2.
Name of spectrum1
Name of spectrum2
range.mz
ppm.tol
mz.ppm.thr
xlab.
ylab.
Color 1.
Color 2.
title.size
lab.size
axis.text.size.
legend.title.size
legend.text.size
Interactive plot or not.
Return a MS2 spectrum.
spectrum1 <- data.frame(
mz = c(
87.50874,
94.85532,
97.17808,
97.25629,
103.36186,
106.96647,
107.21461,
111.00887,
113.79269,
118.70564
),
intensity =
c(
8356.306,
7654.128,
9456.207,
8837.188,
8560.228,
8746.359,
8379.361,
169741.797,
7953.080,
8378.066
)
)
spectrum2 <- spectrum1
ms2_plot(spectrum1, spectrum2)
ms2_plot(spectrum1, spectrum2, interactive_plot = TRUE)
ms2_plot(spectrum1)
ms2_plot(spectrum1, interactive_plot = TRUE)