visualisation-methods-spectra: Visualisation methods

Description Usage Arguments Value Examples

Description

Methods available to plot one object in ASICS package.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'Spectra,ANY'
plot(x, y, xlim = c(0.5, 10), ylim = NULL, ...)

## S4 method for signature 'ASICSResults,ANY'
plot(
  x,
  y,
  idx = 1,
  xlim = c(0.5, 10),
  ylim = NULL,
  pure.library = NULL,
  add.metab = NULL,
  ...
)

Arguments

x

An object of class Spectra, PureLibrary or ASICSResults.

y

Currently not used.

xlim, ylim

Boundaries for x and y, respectively.

...

Currently not used.

idx

Index of the spectrum to plot. Default to 1.

pure.library

Pure library used for the quantification. Default to NULL (in which case, the library included in the package is used).

add.metab

Name of one metabolite to add to the plot. Default to NULL (in which case, no pure spectrum added to the plot).

Value

Examples

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

# Plot the spectra
plot(spectra_obj)

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