Pertube {tricolore} | R Documentation |
Compositional Pertubation
Description
Pertubate a compositional data set by a compositional vector.
Usage
Pertube(P, c = rep(1/3, 3))
Arguments
P |
n by m matrix of compositions [p1, ..., pm]_i for i=1,...,n. |
c |
Compositional pertubation vector [c1, ..., cm]. |
Value
n by m matrix of pertubated compositions.
References
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
Examples
# 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)
[Package tricolore version 1.2.4 Index]