Compositional data analysis (CoDA) provides a coherent framework for treating geochemical measurements that represent parts of a whole, such as oxide or elemental abundances in rocks, soils or waters.