View source: R/plotFSdb2SpectraCore.R
plotFSdb2SpectraCore | R Documentation |
This function plots spectra figures from FSdb objects generated using the 'msp2FSdb' function.
plotFSdb2SpectraCore(FSdb, index)
FSdb |
FSdb |
index |
index |
spectra_figure object
## To create the FSdb object
temp_wd <- tempdir() # just a temporary folder
path_extdata <- system.file("extdata", package = "IDSL.FSA")
MSPfile <- c("Kynurenine_Kynurenic_acid.msp")
file.copy(from = paste0(path_extdata, "/", MSPfile), to = temp_wd)
FSdb <- msp2FSdb(path = temp_wd, MSPfile)
## To plot spectra
index <- 1
plotFSdb2SpectraCore(FSdb, index)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.