gx.symm.coords.mat: Create a Matrix of Symmetric Coordinates
Description
Function to compute a matrix of symmetric coordinates for any two parts, v1 and v2, of a n by p data frame or matrix of compositions.
Usage
gx.symm.coords.mat(x, v1, v2)
Arguments
x
a data frame or matrix of compositions.
v1
the index of the first part for which symmetric coordinates are required.
v2
the index of the second part for which symmetric coordinates are required.
Value
z
a n by 2 matrix containing the symmetric coordinates of parts v1 and v2. The column names are the names of the parts in the input data frame or matrix x.
References
Kynclova, P., Hron, K., and Filzmoser, P., 2017. Correlation Between Compositional Parts Based on Symmetric Balances. Mathematical Geosciences, 49:777-796.
# NOT RUN {## Make test data availabledata(nockolds)
## Compute and display symmetric coordinates for Ca and Nagx.symm.coords.mat(nockolds, 6, 7)
## Detach test datarm(nockolds)
# }