View source: R/transformations.R
clr | R Documentation |
Maps compositional data from an n-dimensional simplex to an n-dimensional Euclidean space with Aitchison's centred logratio transformation.
clr(dat, inverse = FALSE)
dat |
an |
inverse |
logical. If |
an n x m
matrix
xyz <- rbind(c(0.03,99.88,0.09), c(70.54,25.95,3.51), c(72.14,26.54,1.32)) colnames(xyz) <- c('a','b','c') rownames(xyz) <- 1:3 pc <- prcomp(clr(xyz)) biplot(pc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.