powered by
SpatialPolygons
trigrid
hexagrid
Add a SpatialPolygons object to a predefined slot in a trigrid or hexagrid object
newsp(gridObj, res = NULL)# S4 method for trigrid newsp(gridObj, res = NULL)
# S4 method for trigrid newsp(gridObj, res = NULL)
A trigrid or hexagrid object with the new @sp slot.
@sp
(trigrid or hexagrid) An icosahedral grid.
(numeric) The number of points inserted between two vertices, passed to SpPolygons.
numeric
SpPolygons
a<-trigrid(4) a<-newsp(a) plot(a)
Run the code above in your browser using DataLab