PLR {easyCODA}R Documentation

Pivot logratios

Description

Computation of the set of pivot logratios(PLRs) based on the specified ordering of parts

Usage

PLR(data, ordering=1:ncol(data), weight=TRUE)

Arguments

data

A compositional data frame or matrix

ordering

The ordering of the parts to be used in the PLRs (by default, the original ordering of the columns)

weight

Logical indicating if varying weights are returned (default:TRUE). If FALSE, weights based on equally-weighted parts are returned. Alternatively a set of positive weights can be specified.

Details

The function PLR computes the set of pivot logratios according to the ordering of the parts.

Value

LR

The pivot logratios (PLRs)

LR.wt

The weights assigned to the PLRs

Author(s)

Michael Greenacre

References

Hron K., Filzmoser P., de Caritat P., Fiserova E., Gardlo A. (2017). Weighted pivot coordinates for copositional data and their application to geochemical mapping. Mathematical Geosciences 49, 777-796.

See Also

ILR, SLR, CLR, ALR, LR

Examples

data(veg)
PLR(veg, ordering=c(1,3,2))

[Package easyCODA version 0.34.3 Index]