View source: R/poly2spatialpoly.R
poly2sp | R Documentation |
Assumes that the dataframe only contains rombuses.
poly2sp(polydf)
polydf |
A polygon in the format required by geom_polygon: a data.frame with values, x and y positions and id labels |
A spatialPolygonsDataFrame object, as used in the package 'sp'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.