For the first question, we performed a Random Forests (RF) regression
(R-version 2.15.3) of the first 5 PCs of the TXRF element concentration
data against site factorswhile for the second question,we explored
the RF regression of elements PCs against mineral composition. We
included and excluded different variables to test their effects on the
overall model and variable importance.