Get geometries - UCSB-MEDS/shiny-dashboard GitHub Wiki

State and country geometries will need to be joined with career placement and admissions data to build the heat maps which appear on the Bren Student Data Explorer. We need to download and save US state geometries from the US Census Bureau (using the {tigris} package) and world country geometries from Eurostat - GISCO (using the {giscoR} package). To do so, follow these steps:

  • 1. Locate the get-geometries.qmd file inside the shiny-dashboard/data-cleaning/directory
  • 2. Run sections 0 and 1 to retrieve US states and world country geometries, and save as separate data frames
  • 3. Run section 2 to write both data frames to file. Both files will be saved to the shiny-dashboard/raw-data/ directory