Description Usage Arguments Value See Also Examples
View source: R/plotAlignment.R
Tile plot of spectra to see if an alignment is needed or the result of an alignment.
1 | plotAlignment(spectra_obj, xlim = c(0, 10))
|
spectra_obj |
An object of class Spectra obtained with the function createSpectra. |
xlim |
Boundaries for x. |
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.
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))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.