Exploratory data analysis (EDA) and RQ-Principal Component Analysis (PCA) of geochemical and biogeochemical data for use in mineral exploration and environmental studies.
These scripts are designed to take you through censoring (the replacement of missing values using k-nearest neighbour and the imputation of upper or lower detection limit values using ilr), clr-transformation and RQ-PCA.
Please note that these scripts use R-packages that are protected under their own licenses and it's recommended that each license is reviewed prior to use.
Package Descriptions
Package 'rgr', Garrett (2018): https://cran.r-project.org/web/packages/rgr/rgr.pdf
Package 'robcompositions'; Templ, Hron, Filzmoser, Facevicova, Kynclova, Walach, Pintar, Chen and Miksova (2019): https://cran.r-project.org/web/packages/robCompositions/robCompositions.pdf
References
Benz, D. (2019). R-BioGeochemistry. 1.0. Script 'Censor-ImputeMissing'. R script version 3.5.3.
Benz, D. (2019). R-BioGeochemistry. 1.0. Script 'Censor-ImputeUDL'. R script version 3.5.3.
Benz, D. (2019). R-BioGeochemistry. 1.0. Script 'PCA-workflow-ImputeBDL-clr-RQPCA'. R script version 3.5.3.
Garrett, R.G. (2018). rgr: Applied Geochemistry EDA. 1.1.15. Package 'rgr'. R package version 3.5.3.
Templ, M., Hron, K., Filzmoser, P., Facevicova, P., Kynclova, P., Walach, J., Pintar, V., Chen, J. and Miksova D. (2019). robCompositions: Robust Estimation for Compositional Data. 2.10.0. Package 'robCompositions'. R package version 3.5.3.