ms2_plot

# S4 method for ms2_data
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
)

Arguments

spectrum1

ms2_data

spectrum2

Spectrum 2.

spectrum1_name

Name of spectrum1

spectrum2_name

Name of spectrum2

range.mz

range.mz

ppm.tol

ppm.tol

mz.ppm.thr

mz.ppm.thr

xlab

xlab.

ylab

ylab.

col1

Color 1.

col2

Color 2.

title.size

title.size

lab.size

lab.size

axis.text.size

axis.text.size.

legend.title.size

legend.title.size

legend.text.size

legend.text.size

interactive_plot

Interactive plot or not.

Value

ms2 matching plot