PLR: Pivot logratios

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

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

Usage

1
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

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

Example output

Loading required package: ca
Loading required package: vegan
Loading required package: permute
Loading required package: lattice
This is vegan 2.5-7
Loading required package: ellipse

Attaching package:ellipseThe following object is masked frompackage:graphics:

    pairs

$LR
                 Protein/Fat&Carbohydrate Fat/Carbohydrate
Asparagus                     -0.24802519       -0.9195589
Beans(soya)                    0.14475485       -0.1526595
Broccoli                       0.17310095       -0.5529742
Carrots                       -1.55301541       -1.1585410
Corn                          -1.33944914       -1.0551725
Mushrooms                     -1.00888948       -0.8042914
Onions                        -1.36272359       -1.4247918
Peas                          -0.54476244       -1.1273596
Potatoes(boiled)              -1.56285053       -1.6633849
Spinach                       -0.06035807       -0.7007084

$LR.wt
Protein/Fat&Carbohydrate         Fat/Carbohydrate 
               0.1873699                0.0370192 

easyCODA documentation built on Sept. 20, 2020, 1:07 a.m.