ilr | R Documentation |
Compute the isometric log ratio transform of a (dataset of) composition(s).
Default method is function
ilr
from package compositions.
ilr(x, V = ilrBase(x), ...)
## Default S3 method:
ilr(x, V = ilrBase(x), ...)
## S3 method for class 'hyperSpec'
ilr(x, V = ilrBase(x), ...)
x |
A composition, not necessarily closed. (A numeric data frame or matrix.) |
... |
further parameters to |
Returns the transformed data matrix with one dimension less than
x
. Thus for hyperSpec
object the last value of
x$.wavelength
is removed.
ilr
, ilrBase
Other row-wise transformations:
alr()
,
apt()
,
clr()
,
cpt()
,
ipt()
library(spHelper)
data("Spectra2")
ilr(Spectra2)
plot(Spectra2)
plot(ilr(Spectra2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.