Plot relative standard deviation (RSD) distributions of spectrally processed data.
Usage
# S4 method for Binalysis
plotRSD(analysis, cls = "class")
# S4 method for MetaboProfile
plotRSD(analysis, cls = "class")
Arguments
- analysis
an object of S4 class
Binalysis
orMetaboProfile
- cls
the info column to use for class labels
Examples
## Retrieve file paths and sample information for example data
files <- metaboData::filePaths('FIE-HRMS','BdistachyonEcotypes')[1:2]
info <- metaboData::runinfo('FIE-HRMS','BdistachyonEcotypes')[1:2,]
## Perform spectral binning
analysis <- binneR::binneRlyse(files,
info,
parameters = binneR::detectParameters(files))
#> binneR v2.6.3 Fri Jul 21 17:29:16 2023
#> ________________________________________________________________________________
#> Scans: 5:14
#> ________________________________________________________________________________
#> Reading raw data
#> Gathering bins
#> Removing single scan events
#> Averaging intensities across scans
#> Calculating bin metrics
#> Calculating accurate m/z
#> Building intensity matrix
#> Gathering file headers
#>
#> Completed! [1.5S]
## Plot RSD distributions
plotRSD(analysis)
#> $n
#>
#> $p
#>