Subset the shapefile and road lines to proper roads within specified tract
numeric specifying the ID of the region we are sub-sampling
sp class with all of the locations for each place id. In addition, we must have road shapefiles so shapefile is a list with both the tracts and the roads, tracts is the first object and roads the second.
new_shp - roads within the tract, a SpatialLines object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.