Description Usage Arguments Value Examples
A way to visualize contrasts between Raman spectra from different samples in an existing hyperSpec object
1 | hs_contrast(hs.x, comp1, comp2, plot = TRUE)
|
hs.x |
a hyperSpec object |
comp1 |
numeric (any length) or boolean (TRUE/FALSE - length equal to number of spectra in hs.x) vector with sample names from one side of the comparisons |
comp2 |
numeric (any length) or boolean (TRUE/FALSE - length equal to number of spectra in hs.x) vector with sample names from the other side of the comparisons |
plot |
a logical indicating whether or not the constrasts should be plotted (defaults to TRUE) |
a dataframe containing the contrast values between the averaged spectra
1 2 3 4 5 6 7 8 | ## Short example
data("hs_example")
# Preprocess
hs_example <- hs_preprocess(hs_example)
# Run contrast comparison
hs.cont <- hs_contrast(hs_example, comp1 = c(1:4), comp2 = c(8:20))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.