plotFSdb2SpectraCore: plot spectra from FSdb core

View source: R/plotFSdb2SpectraCore.R

plotFSdb2SpectraCoreR Documentation

plot spectra from FSdb core

Description

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

Usage

plotFSdb2SpectraCore(FSdb, index)

Arguments

FSdb

FSdb

index

index

Value

spectra_figure object

Examples


## 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)


IDSL.FSA documentation built on July 9, 2023, 6:45 p.m.