Aan de slagGa gratis aan de slag

Wealthiest Zip Codes in America

Zooming out from North Carolina, let's put together a polygon layer for the entire country. Then we will work to add this layer to our map of American colleges.

According to the 2015 IRS data, there are 427 zip codes in America with a mean income of $200,000 or more. It might be interesting to know which colleges are located in these affluent areas. Let's map these 427 polygons and explore our leaflet map to better understand where the highest income zip codes in America are. To get us started, a SpatialPolygonsDataFrame called wealthy_zips that contains information on each zip code in America with a mean income of $200,000 or more has been loaded for you.

Before we work with this data, take a minute to hypothesize where many of these zip codes are located.

Deze oefening maakt deel uit van de cursus

Interactive Maps with leaflet in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Print the slot names of `wealthy_zips`
___(wealthy_zips)
Code bewerken en uitvoeren