View source: R/extract_coords.R
extract_coords | R Documentation |
Extracts the bounding (edges) coordinates of a polygon object.
extract_coords(poly)
poly |
(An sf or S4 object) A polygon shapefile. |
Given a spatial polygon object, the function extracts its bounding coordinates.
Returns 2-column xy coordinates representing points of directional change along the boundary.
#load boundary of Camden
load(file = system.file("extdata", "camden.rda",
package="stppSim"))
boundary = camden$boundary # get boundary
extract_coords(poly=boundary)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.