Learn R Programming

provenance (version 4.4)

ALR: Additive logratio transformation

Description

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

Usage

ALR(x, ...)

# S3 method for default ALR(x, inverse = FALSE, ...)

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

Value

a matrix of ALR coordinates OR an object of class

compositional (if inverse=TRUE).

Arguments

x

an object of class compositional OR a matrix of numerical values

...

optional arguments

inverse

perform the inverse inverse logratio transformation?

Examples

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

Run the code above in your browser using DataLab