CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Interactive Maps with leaflet in R

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Print the slot names of `wealthy_zips`
___(wealthy_zips)
Modifier et exécuter le code