As it is currently Winter, this analysis’ goal is to identify which areas of Boston register the most Boston311 complaints about snow, and which areas of the city register the least. Snow can be quite disruptive in urban areas as it interrupts transit systems and general movement around the city, and Boston311 calls allow for point data to be collected to see where the most disruption and inconveniences are taking place. For the analysis, requests for snow plowing and miscellaneous snow complaints from 2017 are the chosen variables. The hypothesis is: the highest concentration of points will be located in the northern part of the city and concentration will be lower in the southern parts of the city. This is based on prior knowledge of the dataset, in which past analysis’ showed this spatial pattern.
# filter the data to select variables
snow311 <- boston311 %>%
filter(grepl("Request for Snow Plowing|Snow Complaint", TYPE))
unique(snow311$TYPE)
## [1] "Request for Snow Plowing"
## [2] "Misc. Snow Complaint"
## [3] "Request for Snow Plowing (Emergency Responder)"
# interactive map of variables
tmap_mode("view")
## tmap mode set to interactive viewing
tm_basemap(leaflet::providers$OpenStreetMap.BlackAndWhite) + tm_shape(snow311_sf) +
tm_dots(col="TYPE")
# map points by neighborhoods
tm_shape(bostonNeighborhoods_sf) + tm_polygons(col="requests") +
tm_shape(snow311_sf) + tm_dots(alpha=0.1)