Learn R Programming

IDSL.FSA (version 1.2)

plotFSdb2SpectraCore: plot spectra from FSdb core

Description

This function plots spectra figures from FSdb objects generated using the `msp2FSdb` function.

Usage

plotFSdb2SpectraCore(FSdb, index)

Value

spectra_figure object

Arguments

FSdb

FSdb

index

index

Examples

Run this code
# \donttest{
## 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)
# }

Run the code above in your browser using DataLab