Skip to contents

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 or MetaboProfile

cls

the info column to use for class labels

Value

A list of RSD distribution plots for each ionisation mode..

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

#>