ilr(x) invilr(x)
This implementation is a special case of the class of isometric log-ratio transformations.
Peter Filzmoser, Karel Hron (2008) Outlier Detection for Compositional Data Using Robust Methods. Math Geosci 40 233-248
[1] -1.628174 -2.820079[1] 1.628174 2.820079[1] 0 0[1] -0.2034219 0.1174457[1] 0.70 0.29 0.01[1] 0.70 0.29 0.01[1] 7.213536e-07 9.999993e-01[1] 7.207415e-07 9.991507e-01 8.486044e-04[1] 1# This is why we do not need all elements of the inverse transformation to go back: a <- c(0.1, 0.3, 0.5) b <- invilr(a) length(b) # Four elements[1] 4[1] 0.1 0.3 0.5