plotAlignment: Tile plot

Description Usage Arguments Value See Also Examples

View source: R/plotAlignment.R

Description

Tile plot of spectra to see if an alignment is needed or the result of an alignment.

Usage

1
plotAlignment(spectra_obj, xlim = c(0, 10))

Arguments

spectra_obj

An object of class Spectra obtained with the function createSpectra.

xlim

Boundaries for x.

Value

A ggplot plot of original and reconstructed spectra of one sample in the same figure for ASICSResults object. In addition, one pure metabolite spectrum (as provided in the reference library) and the deformed one can be superimposed to the plot.

See Also

alignSpectra

Examples

1
2
3
4
5
# Import data and create object
current_path <- system.file("extdata", "example_spectra", package = "ASICS")
spectra_data <- importSpectraBruker(current_path)
spectra_obj <- createSpectra(spectra_data)
plotAlignment(spectra_obj, xlim = c(3,4))

GaelleLefort/ASICS documentation built on July 19, 2020, 2:08 p.m.