A data transformation according to the centered planar transformation is done. Default method is function cpt from package compositions.

cpt(x, ...)

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

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

Arguments

x

A numeric data frame or matrix.

...

further parameters to cpt.

Value

Returns the transformed data matrix with the same dimension as

x.

See also

cpt

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

Examples

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

plot(Spectra2)

plot(cpt(Spectra2))