pdil / usmap

🗺 Create US maps including Alaska and Hawaii in R
https://usmap.dev/
GNU General Public License v3.0
73 stars 16 forks source link

Look into including US territories in map #20

Open pdil opened 5 years ago

pdil commented 5 years ago

US territories are frequently excluded from US maps. In the spirit of this package, which is to include often forgotten Alaska & Hawaii, it may be a good idea to allow the option to present the inhabited US territories on the map as well.

The territories being considered are:

These territories all have FIPS codes and official abbreviations so incorporating them into the data set should be seamless.

The difficult part will be moving the coordinates of these places so that they appear on the map in a suitable and aesthetically adequate part of the US map.

pdil commented 5 years ago

Example maps for reference since there isn't much precedent in this area:

https://media.gettyimages.com/vectors/map-with-its-territories-vector-id165966331?s=170667a

https://media.gettyimages.com/vectors/map-outline-with-its-territories-vector-id452121583?s=170667a

https://www.rfca.org/portals/0/usa_map_530W.jpg

dcaud commented 4 years ago

I'd really appreciate this! I believe Puerto Rico has > 3,000,000 residents, whereas the other territories have less than 200,000. All would be great! But maybe just start with PR and add it inside the Gulf of Mexico?

dcaud commented 4 years ago

I've looked at your code a bit and might try to revise it to include PR.

The basic requirements seem to be:

  1. Revise Transform.R: A. duplicate the Hawaii (or Alaska) functions with updated coord values for PR. B. update # combine all point to merge in the new PR.

  2. Add "PR,72,PUERTO RICO" to states-fips.R

  3. Add outline of PR in create-map-df.R

  4. Run make-all.R to update data for PR outline

Is that the basics? If so, I might give it a try later today.

pdil commented 4 years ago

@dcaud That's correct, I think you got it. Feel free to open a PR and we can work through it to make sure everything is included. Thanks!

dcaud commented 4 years ago

I opened a PR and made some changes. I guess we can continue the conversation over there!

dcaud commented 1 month ago

My old fork doesn't work anymore to re-map Puerto Rico. But I am still interested in this feature. Is anyone interested in outlining the work required with the current state of this library?

pdil commented 4 weeks ago

Yeah the data has since been moved to https://github.com/pdil/usmapdata so the data and scripts will need to be updated there