ALR: Additive logratio transformation

Description Usage Arguments Value Examples

View source: R/toolbox.R

Description

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

Usage

1
2
3
4
5
6
7
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

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

pvermees/provenance documentation built on June 27, 2018, 7:31 a.m.