ALR {provenance}R Documentation

Additive logratio transformation

Description

Calculates Aitchison's additive logratio transformation for a dataset of class compositional or a compositional data matrix.

Usage

ALR(x, ...)

## Default S3 method:
ALR(x, inverse = FALSE, ...)

## S3 method for class 'compositional'
ALR(x, ...)

Arguments

x

an object of class compositional OR a matrix of numerical values

...

optional arguments

inverse

perform the inverse inverse logratio transformation?

Value

a matrix of ALR coordinates OR an object of class compositional (if inverse=TRUE).

Examples

# logratio plot of trace element concentrations:
data(Namib)
alr <- ALR(Namib$Trace)
pairs(alr[,1:5])
title('log(X/Pb)')

[Package provenance version 4.3 Index]