framework
framework copied to clipboard
Soil metals example (R loader)
Framework project example exploring soil metal concentrations in mining regions in Department of Moquegua, Peru. Uses a zip.R data loader, accessing static data from an Excel file (does not pull live data).
Requires R and the following R packages installed:
readxl,dplyr,tidyr,janitor,stringr,readr- Install packages locally in R terminal
install.packages(c("readxl", "dplyr", "tidyr", "janitor", "stringr", "readr"))
Would like to:
- [x] Add variance explained by PC1 and PC2 in biplot axis labels (e.g. PC1 (38%))
- [x] Add varExplained percentages directly above screeplot bars
- [ ] Add different scales for PCA loadings & scores in biplot (like shown here. ~Possible in Plot?~ Possible in Plot!!)
- [ ] Repel loading labels in biplot
- [ ] In dot / boxplot: Add sample sizes after the name of each district label, e.g. (Torata (n = 8))
- [ ] In dot / boxplot: Move the h3 explainer to the bottom of the card (footer)
- [x] Add a disclaimer (on page or ReadMe that this is for pedagogical purposes only -- the variable selection is basically random)
- [ ] Move chart functions to components (but they're not too overwhelming in the .md)
- [ ] Dreams: a map of Moquegua districts that highlights those selected in the biplot (with coordinating color).
Need to (if we move forward with this example):
- Update GH actions
- Add live project link to README
Possible in Plot?
I think the example you're linking to is using Plot under the hood?
Possible in Plot?
I think the example you're linking to is using Plot under the hood?
YES I confused examples, updated :)