Aitchison Examples

pyrolite includes four synthetic datasets which are used in [Aitchison1984] which can be accessed using each of the respective functions load_boxite(), load_coxite(), load_hongite() and load_kongite() (all returning a DataFrame).

from pyrolite.data.Aitchison import load_boxite, load_coxite, load_hongite, load_kongite

df = load_boxite()
df.head()
A B C D E Depth
Specimen
B1 43.5 25.1 14.7 10.0 6.7 1
B2 41.1 27.5 13.9 9.5 8.0 2
B3 41.5 20.1 20.6 11.1 6.7 3
B4 33.9 37.8 11.1 11.5 5.7 4
B5 46.5 16.0 15.6 14.3 7.6 5


import matplotlib.pyplot as plt

import pyrolite.plot

fig, ax = plt.subplots(1)
for loader in [load_boxite, load_coxite, load_hongite, load_kongite]:
    df = loader()
    ax = df[["A", "B", "C"]].pyroplot.scatter(ax=ax, label=df.attrs["name"])

ax.legend()
plt.show()
aitchison

References

Aitchison1984

Aitchison, J., 1984. The statistical analysis of geochemical compositions. Journal of the International Association for Mathematical Geology 16, 531–564. doi: 10.1007/BF01029316

Total running time of the script: (0 minutes 3.308 seconds)