R/gis.R
shp_to_df.Rd
Convert shapefile object to dataframe
shp_to_df(obj)
Spatial object to convert. See details.
Takes a SpatialLinesDataFrame object or SpatialPolygonsDataFrame object and converts into a dataframe that can be plotted in ggplot2.