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)
Run the code above in your browser using DataLab