shp_to_df: shp_to_df

View source: R/gis.R

shp_to_dfR Documentation

shp_to_df

Description

Convert shapefile object to dataframe

Usage

shp_to_df(obj)

Arguments

obj

Spatial object to convert. See details.

Details

Takes a SpatialLinesDataFrame object or SpatialPolygonsDataFrame object and converts into a dataframe that can be plotted in ggplot2.


ropensci/rrricanes documentation built on June 11, 2025, 6:03 p.m.