Construct the transformation matrix associated with centered log-ratio (clr) coordinates.
clr_basis(dim)A square matrix defining the clr coordinate system.
CLR coordinates are linearly dependent and lie in the \(D - 1\) dimensional clr-plane.
Aitchison, J. (1986). The Statistical Analysis of Compositional Data. Chapman & Hall, London.
B <- clr_basis(5)
clr_coordinates <- coordinates(c(1, 2, 3, 4, 5), B)
sum(clr_coordinates) < 1e-15
#> [1] TRUE