shp_to_df | R Documentation |
Convert shapefile object to dataframe
shp_to_df(obj)
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.