Plot a set of deconvoluted spectra.
Arguments
- obj
An object of type
decons0
,decons1
ordecons2
. For details see Metabodecon Classes.- ...
Additional arguments passed to the conversion function.
- sfy
Scaling factor for the y-axis.
- xlab
Label for the x-axis.
- ylab
Label for the y-axis.
- mar
A numeric vector of length 4, which specifies the margins of the plot.
- lgd
Logical. If TRUE, a legend is drawn.
See also
plot_spectrum()
for a much more sophisticated plotting routine
suitable for plotting a single spectrum.
Examples
obj <- deconvolute(sim[1:4], sfr = c(3.55, 3.35))
#> 2025-05-07 12:14:52.57 Starting deconvolution of 4 spectra using 1 worker
#> 2025-05-07 12:14:52.57 Starting deconvolution of sim_01
#> 2025-05-07 12:14:52.57 Removing water signal
#> 2025-05-07 12:14:52.57 Removing negative signals
#> 2025-05-07 12:14:52.57 Smoothing signals
#> 2025-05-07 12:14:52.57 Starting peak selection
#> 2025-05-07 12:14:52.59 Detected 314 peaks
#> 2025-05-07 12:14:52.59 Removing peaks with low pscores
#> 2025-05-07 12:14:52.59 Removed 287 peaks
#> 2025-05-07 12:14:52.59 Initializing Lorentz curves
#> 2025-05-07 12:14:52.59 MSE at peak tiplet positions: 4.0838805770844048836921
#> 2025-05-07 12:14:52.59 Refining Lorentz Curves
#> 2025-05-07 12:14:52.59 MSE at peak tiplet positions: 0.1609359876216345797140
#> 2025-05-07 12:14:52.59 MSE at peak tiplet positions: 0.0228015051613790313556
#> 2025-05-07 12:14:52.59 MSE at peak tiplet positions: 0.0071638016610617799920
#> 2025-05-07 12:14:52.59 Formatting return object as decon2
#> 2025-05-07 12:14:52.60 Finished deconvolution of sim_01
#> 2025-05-07 12:14:52.60 Starting deconvolution of sim_02
#> 2025-05-07 12:14:52.60 Removing water signal
#> 2025-05-07 12:14:52.60 Removing negative signals
#> 2025-05-07 12:14:52.60 Smoothing signals
#> 2025-05-07 12:14:52.61 Starting peak selection
#> 2025-05-07 12:14:52.62 Detected 316 peaks
#> 2025-05-07 12:14:52.62 Removing peaks with low pscores
#> 2025-05-07 12:14:52.62 Removed 286 peaks
#> 2025-05-07 12:14:52.62 Initializing Lorentz curves
#> 2025-05-07 12:14:52.62 MSE at peak tiplet positions: 3.8338943428876719465848
#> 2025-05-07 12:14:52.62 Refining Lorentz Curves
#> 2025-05-07 12:14:52.62 MSE at peak tiplet positions: 0.1289481941626757499630
#> 2025-05-07 12:14:52.62 MSE at peak tiplet positions: 0.0135651899090413786964
#> 2025-05-07 12:14:52.62 MSE at peak tiplet positions: 0.0025556755331531087749
#> 2025-05-07 12:14:52.63 Formatting return object as decon2
#> 2025-05-07 12:14:52.63 Finished deconvolution of sim_02
#> 2025-05-07 12:14:52.63 Starting deconvolution of sim_03
#> 2025-05-07 12:14:52.63 Removing water signal
#> 2025-05-07 12:14:52.63 Removing negative signals
#> 2025-05-07 12:14:52.63 Smoothing signals
#> 2025-05-07 12:14:52.64 Starting peak selection
#> 2025-05-07 12:14:52.65 Detected 333 peaks
#> 2025-05-07 12:14:52.65 Removing peaks with low pscores
#> 2025-05-07 12:14:52.66 Removed 308 peaks
#> 2025-05-07 12:14:52.66 Initializing Lorentz curves
#> 2025-05-07 12:14:52.66 MSE at peak tiplet positions: 1.4917065120183623516681
#> 2025-05-07 12:14:52.66 Refining Lorentz Curves
#> 2025-05-07 12:14:52.66 MSE at peak tiplet positions: 0.0569971157280155932279
#> 2025-05-07 12:14:52.66 MSE at peak tiplet positions: 0.0065629979536274852397
#> 2025-05-07 12:14:52.66 MSE at peak tiplet positions: 0.0013913916281140725414
#> 2025-05-07 12:14:52.66 Formatting return object as decon2
#> 2025-05-07 12:14:52.67 Finished deconvolution of sim_03
#> 2025-05-07 12:14:52.67 Starting deconvolution of sim_04
#> 2025-05-07 12:14:52.67 Removing water signal
#> 2025-05-07 12:14:52.67 Removing negative signals
#> 2025-05-07 12:14:52.67 Smoothing signals
#> 2025-05-07 12:14:52.67 Starting peak selection
#> 2025-05-07 12:14:52.69 Detected 325 peaks
#> 2025-05-07 12:14:52.69 Removing peaks with low pscores
#> 2025-05-07 12:14:52.69 Removed 299 peaks
#> 2025-05-07 12:14:52.69 Initializing Lorentz curves
#> 2025-05-07 12:14:52.69 MSE at peak tiplet positions: 2.2382155282476525748336
#> 2025-05-07 12:14:52.69 Refining Lorentz Curves
#> 2025-05-07 12:14:52.69 MSE at peak tiplet positions: 0.0843491698981613247099
#> 2025-05-07 12:14:52.69 MSE at peak tiplet positions: 0.0101688144550079444944
#> 2025-05-07 12:14:52.69 MSE at peak tiplet positions: 0.0031861616084395915326
#> 2025-05-07 12:14:52.69 Formatting return object as decon2
#> 2025-05-07 12:14:52.70 Finished deconvolution of sim_04
#> 2025-05-07 12:14:52.70 Finished deconvolution of 4 spectra in 0.132 secs
plot_spectra(obj)