grid2spoly | R Documentation |
A function to convert a regular (x,y) grid of centroids into a SpatialPolygons object
grid2spoly(xgrid, ygrid, proj4string = CRS(as.character(NA)))
xgrid |
vector of x centroids (equally spaced) |
ygrid |
vector of x centroids (equally spaced) |
proj4string |
proj 4 string: specify in the usual way |
a SpatialPolygons object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.