This function creates a regular grid of SpatialPointsDataFrame from the extent of a given sp object and a given resolution.
sp object; the spatial extent of this object is used to create the regular SpatialPointsDataFrame.
numeric; resolution of the grid (in map units). If resolution is not set, the grid will contain around 7500 points. (optional)
The output of the function is a SpatialPointsDataFrame of regularly
spaced points with the same extent as
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.