msms_plot: msms_plot

Description Usage Arguments Author(s) Examples

View source: R/PlotFunctions.R

Description

plot MS/MS mirror plot.

Usage

1
2
3
msms_plot(raw.exp.spec, raw.std.spec, match.result = NULL,
  dir.path = NULL, cmp.name = NULL, is.output = c(TRUE, FALSE),
  pg.formate = c("png", "pdf"))

Arguments

raw.exp.spec

Matrix or data frame. The experiment MS/MS spectrum. The 1st column is "mz", the 2nd column is "intensity".

raw.std.spec

Matrix or data frame. The library MS/MS spectrum. The 1st column is "mz", the 2nd column is "intensity"

match.result

output from SpecMatch

dir.path

the file path of output

cmp.name

Character. The name of compound

is.output

Logical. Whether output the plot?

pg.format

png or pdf format.

Author(s)

Zhiwei Zhou zhouzw@sioc.ac.cn

Examples

1
2
3
raw.exp.spec <- data.frame(mz=c(42.0364, 58.0664, 59.0745, 118.0858), intensity=c(0.01, 1, 0.4, 0.25))
raw.std.spec <- data.frame(mz=c(42.0364, 58.0664, 75.4568, 118.0858), intensity=c(0.01, 1, 0.2, 0.25))
msms_plot(raw.exp.spec, raw.std.spec, is.output=FALSE)

JustinZZW/ImmsTools documentation built on July 9, 2019, 9:32 a.m.