Walmart and Population Overlay - With Bonus Starbucks
The following code will read the dataset in directly from data.world.
You may need to join data.world, but I think it works without joining. (Joining is free.)
If you’d rather download and then import, here is the location of the dataset: https://data.world/data-hut/walmart-store-location-data
Map Walmart store locations JUST FOR in AR using leaflet
package.
Obtain your own census api key at: https://api.census.gov/data/key_signup.html
We will use the api key to directly download population data from the census.
Let’s map the AR Population Census using the leaflet package.
This time we are using a different provider for the map: OpenStreetMap
Try swapping other maps – see a few below in the commented code.
Note – modified code slightly in the addPolygons() function to outline each county border in gray