More Fun with Geometries and Aggregation
Make a plot of the count of streetlights relative to population density based on the aggregated
sf
objectMake a second scatterplot of the density values extracted from the density raster
Use
focal
to smooth your density raster and create a second scatterplot of density extracted from