Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soil metals example (R loader) #749

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Soil metals example (R loader) #749

wants to merge 6 commits into from

Conversation

allisonhorst
Copy link
Contributor

@allisonhorst allisonhorst commented Feb 11, 2024

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:

  • Add variance explained by PC1 and PC2 in biplot axis labels (e.g. PC1 (38%))
  • 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)
  • 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

@Fil
Copy link
Contributor

Fil commented Feb 11, 2024

Possible in Plot?

I think the example you're linking to is using Plot under the hood?

@allisonhorst
Copy link
Contributor Author

Possible in Plot?

I think the example you're linking to is using Plot under the hood?

YES I confused examples, updated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants