Admistrative:

Please indicate

  • Who you collaborated with: Trisha
  • Roughly how much time you spent on this HW so far: 8
  • The URL of the RPubs published URL here.
  • What gave you the most trouble:
  • Any comments you have: Could not figure out how to calculate the centroid of population

Question 1:

Question: DHL, a German shipping company, has a ton of money to build a shipping hub in the United States. Where should they build it?

Deliverable: A choropleth map of the lower 48 states (no Puerto Rico) where the color corresponds to the distance of the given area to the shipping hub, which is marked on the map with a large red dot.

The second map takes the population of the county divided by the distance in degrees of longitude/latitude to calculate the closest heavily populated areas.

I made a shiny app