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

Modify get_urbn_map() to use tigris + shift_geometry(). #66

Open
ajjitn opened this issue Sep 3, 2021 · 0 comments
Open

Modify get_urbn_map() to use tigris + shift_geometry(). #66

ajjitn opened this issue Sep 3, 2021 · 0 comments

Comments

@ajjitn
Copy link

ajjitn commented Sep 3, 2021

Right now we manually ellide AK and HI to be inset below the continental US. But the recent version of the tigris package now offers the powerful shift_geo function to shift AK and HI states to be inset. I think it would be a good idea to use the tigris functions - with some smart defaults like resolution = "5m" and cb = T - to be the backend for get_urbn_map() because it would allow other points/geographies to be easily ellided with the same shift_geo() function to display properly in AK and HI.

There are some disadvantages we would have to think through including

  1. The shift_geometry() function automatically converts the CRS to ESRI:102003 (Albers Equal Area), instead of the National Atlas Equal Earth projection we currently use. This is in line with the Urban style guide but could be a breaking change for others.

  2. The positions of AK and HI in tigris (in blue) are slightly different than our old defaults (in magenta).

Screen Shot 2021-09-02 at 2 17 54 PM

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

No branches or pull requests

1 participant