Spatial r file and shapefiles