A data transformation according to the centered logratio transformation is done. default method is function clr from package compositions.

clr(x, ...)

# S3 method for default
clr(x, ...)

# S3 method for hyperSpec
clr(x, ...)

Arguments

x

A numeric data frame or matrix.

...

further parameters to clr.

Value

Returns the transformed data matrix with the same dimension as

x.

See also

clr

Other row-wise transformations: alr(), apt(), cpt(), ilr(), ipt()

Examples

clr(Spectra2)
#> hyperSpec object
#>    150 spectra
#>    3 data columns
#>    501 data points / spectrum

plot(Spectra2)

plot(clr(Spectra2))