The plotlySpectra() function displays a single spectrum stored
in a Spectra object using the plotly::plot_ly() function.
See ?SpectraVis for an example.
Examples
library(MsDataHub)
fl <- PestMix1_DDA.mzML()
#> see ?MsDataHub and browseVignettes('MsDataHub') for documentation
#> loading from cache
pest_ms2 <- filterMsLevel(Spectra(fl), 2L)
plotlySpectra(pest_ms2[950])