plot_spectra: Plot Spectra

View source: R/plot.R

plot_spectraR Documentation

Plot Spectra

Description

Plot a set of deconvoluted spectra.

Usage

plot_spectra(
  obj,
  ...,
  sfy = 1e+06,
  xlab = "Chemical Shift [ppm]",
  ylab = paste("Signal Intensity [au] /", sfy),
  mar = c(4.1, 4.1, 1.1, 0.1),
  lgd = TRUE
)

Arguments

obj

An object of type decons0, decons1 or decons2. 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.

Value

A plot of the deconvoluted spectra.

Author(s)

2024-2025 Tobias Schmidt: initial version.

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))
plot_spectra(obj)

metabodecon documentation built on Nov. 5, 2025, 7:12 p.m.