Centre | R Documentation |
Calculate the centre of a compositional data set.
Centre(P)
P |
n by m matrix of compositions [p1, ..., pm]_i for i=1,...,n. |
The centre of P as an m element numeric vector.
Von Eynatten, H., Pawlowsky-Glahn, V., & Egozcue, J. J. (2002). Understanding perturbation on the simplex: A simple method to better visualize and interpret compositional data in ternary diagrams. Mathematical Geology, 34(3), 249-257.
Pawlowsky-Glahn, V., Egozcue, J. J., & Tolosana-Delgado, R. (2007). Lecture Notes on Compositional Data Analysis. Retrieved from https://dugi-doc.udg.edu/bitstream/handle/10256/297/CoDa-book.pdf
# NOTE: only intended for internal use and not part of the API
P <- prop.table(matrix(runif(300), 100), margin = 1)
tricolore:::Centre(P)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.