ilr.RdCompute the isometric log ratio transform of a (dataset of) composition(s).
Default method is function
ilr from package compositions.
A composition, not necessarily closed. (A numeric data frame or matrix.)
further parameters to ilr.
Returns the transformed data matrix with one dimension less than
x. Thus for hyperSpec object the last value of
x$.wavelength is removed.
library(spHelper)
data("Spectra2")
ilr(Spectra2)
#> Warning: Negative values in composition are used as detection limits
#> hyperSpec object
#> 150 spectra
#> 3 data columns
#> 500 data points / spectrum
plot(Spectra2)
plot(ilr(Spectra2))
#> Warning: Negative values in composition are used as detection limits