tigris

Get Census Tract from Lat/Lon using tigris

半世苍凉 提交于 2021-01-29 07:26:08
问题 I have a relatively large number of coordinates for which I'd like to get the census tract (in addition to the FIPS code). I know that I can look up individual lat/lon pairs using call_geolocator_latlon (as done here), but this seems impractical for my purposes as the function issues a single call to the census bureaus' API, and I imagine would take a very long time to run on my ~200,000 pairs. Is there a faster way to do this, perhaps by downloading shapefiles for each state using the block

Leaflet R performance issues with large map

拜拜、爱过 提交于 2019-12-12 12:06:57
问题 I'm wondering if anyone else has experienced similar issues when plotting a large number of markers and polygons using leaflet package in R. This is what it normally should look like: However, when I zoom in/out of the map, the polygons and markers are clearly out of place (or you can say the base map does not adjust properly). An example is included below: I would not have this issue when I plotted a smaller area or few markers. I'm wondering if there is a way to improve the performance.