View source: R/plotlySpectra.R
| plotlySpectra | R Documentation |
The plotlySpectra() function displays a single spectrum stored
in a Spectra object using the plotly::plot_ly() function.
See ?SpectraVis for an example.
plotlySpectra(object)
object |
A instance of class |
A plotly object.
Laurent Gatto, Johannes Rainer
library(msdata)
fl <- system.file("TripleTOF-SWATH", "PestMix1_DDA.mzML", package = "msdata")
pest_ms2 <- filterMsLevel(Spectra(fl), 2L)
plotlySpectra(pest_ms2[950])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.