visualizers: Plot spectrum from a rTResult object

Description Usage Arguments Value Examples

Description

Functions like GetTaxoFromXML("pathToXML"), GetParamFromXML("pathToXML"), GetResultsFromXML(pathToXML) creates R object from X!Tandem-style xml files. The functions WriteParamToXML(paramObject) and WriteTaxoToXML(paramObject) will create an X!Tandem-style xml file from an R object.

Usage

1
ms2.plot(spectrum.id, result)

Arguments

spectrum.id

The id of the spectrum to be plotted (from the field result@spectra$id).

result

A result object of class rTResult_s.

Value

'plot.ms2' returns a plot of the spectrum.

Examples

1
2
3
4
5
6
7
8
require(rTANDEM)
result <- GetResultsFromXML(
  system.file("extdata/result.xml", package="rTANDEM")
)

## Get the first spectra of the dataset and plot it:
spectrum.id <- result@spectra$id[[1]]
ms2.plot(spectrum.id, result)

rTANDEM documentation built on April 28, 2020, 7:04 p.m.