community_areas_spdf.Rd
77 community area boundaries in Chicago that only be used with the sp
package.
data("community_areas_spdf")
A SpatialPolygonsDataFrame with 77 observations on the following 2 variables:
community
the name of each community area
area_numbe
the area number for each community(identical to area_num_1
)
This SpatialPolygonsDataFrame comes from the City of Chicago Data Portal, Boundaries - Community Areas (current). The file was last updated on December 18, 2018.
# load necessary packages ---- library(sp) # load necessary data ---- data("community_areas_spdf") # plot all 77 community areas ----- par(mar = c(0, 0, 1, 0)) plot(community_areas_spdf , main = "Chicago's 77 community areas" , col = "gray85" , border = "dodgerblue4")