Learn R Programming

ASICS (version 1.0.1)

resASICS-methods: S4 methods to represent results of ASICS.

Description

S4 methods to represent results of ASICS.

Usage

# S4 method for resASICS
summary(object, ...)

# S4 method for resASICS show(object)

# S4 method for resASICS print(x)

# S4 method for resASICS plot(x, y, xmin = 0.5, xmax = 10, ymin = 0, ymax = NULL, add_metab = NULL)

Arguments

object

an object of class resASICS

...

not used

x

an object of class resASICS

y

not used

xmin, xmax, ymin, ymax

lower and upper bounds for x and y, respectively

add_metab

name of one metabolite to add to the plot. Default to NULL (no pure spectrum added to the plot)

Value

plot the true and recomposed (as estimated by ASICS) spectra on one figure. In addition, one pure metabolite spectrum (as provided in the reference library) can be superimposed to the plot.

See Also

ASICS resASICS-class

Examples

Run this code
# NOT RUN {
cur_path <- system.file("extdata", "example_spectra", "AG_faq_Beck01",
                        package = "ASICS")
to_exclude <- matrix(c(4.5,5.1,5.5,6.5), ncol = 2, byrow = TRUE)
result <- ASICS(path = cur_path, exclusion.areas = to_exclude)

result
summary(result)
plot(result)

# }

Run the code above in your browser using DataLab