grid2spts | R Documentation |
A function to convert a regular (x,y) grid of centroids into a SpatialPoints object
grid2spts(xgrid, ygrid, proj4string = CRS(as.character(NA)))
xgrid |
vector of x centroids (equally spaced) |
ygrid |
vector of x centroids (equally spaced) |
proj4string |
an optional proj4string, projection string for the grid, set using the function CRS |
a SpatialPoints object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.