Metropolitan-Council / councilR

A curated collection of commonly used templates, color palettes, functions, and more!
Other
6 stars 1 forks source link

Update geography functions #50

Closed ehesch closed 1 year ago

ehesch commented 1 year ago

@eroten I've finally gotten tired of writing the same geographic processing code over...and over...and over...and over again! This gets at issue #41.

1) fetch_ctu_geo() downloads ctu geographies using tirgris in a process that is faster and easier than getting downloading them from the geospatial commons. I finally took the time to align tigris city names (county_subdivisions()) with the Council's "official" names (the main reason why I wasn't going the quicker/faster route before). There is a slight mismatch in Credit River / Credit River Township, but this has always been the case across different map products the Council puts out. Just as an FYI.

2) theme_council_geo() makes some small tweaks from theme_void() and is a nice theme for maps.

3) map_council_continuous() takes theme_council_geo() one step further, and makes a map with a default diverging color scheme (building off of colorbrewer's BrBG theme) and some useful annotations (scale bar + north direction arrow). It's a bit of an unconventional fix (rather than modifying a theme, it's actually creating an initial plot), but this will save me (and hopefully others!) so much typing.....

FYI, I did not increment the description. Not sure what the protocol is here, so I figured I'd just leave it alone.

ehesch commented 1 year ago

Just wanted to ping you @eroten - what do you think about adding these geography enhancements?