plotAlignment {ASICS} | R Documentation

## Tile plot

### Description

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

### Usage

    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

    # 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))

[Package ASICS version 2.3.1 Index]