clr: [!] Centered logratio transformation

View source: R/clr.R

clrR Documentation

[!] Centered logratio transformation

Description

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

Usage

clr(x, ...)

## Default S3 method:
clr(x, ...)

## S3 method for class '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)

plot(Spectra2)
plot(clr(Spectra2))

GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.