Pertube | R Documentation |
Pertubate a compositional data set by a compositional vector.
Pertube(P, c = rep(1/3, 3))
P |
n by m matrix of compositions [p1, ..., pm]_i for i=1,...,n. |
c |
Compositional pertubation vector [c1, ..., cm]. |
n by m matrix of pertubated compositions.
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(12), 4), margin = 1)
cP <- tricolore:::Pertube(P, 1/tricolore:::Centre(P))
tricolore:::Centre(cP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.