3.9 Bonus map: Mapping income data
We’ll be doing a lot more work with maps later. Meanwhile, though, if you’d like a sneak peek, try running the following remote code. Note that it will be loading several packages on your system the first time it executes as well as a data file, so it may take a little while to execute.
You can find and copy that lengthy URL by heading to http://bit.ly/R4JournalismLinks and copying the second URL under the Chapter 3 heading.
source("https://raw.githubusercontent.com/smach/R4JournalismBook/master/03_manhattan_income_map.R")
get_household_income_in_county()
Click on different portions of the map to get pop-ups with data details.