Skip to content
Prev 9306 / 29559 Next

create an Hexagonal grid

On Wed, 15 Sep 2010, Greg Snow wrote:

            
For sp objects, see the "hexagonal" type in spsample(), the low-level 
sp:::genHexGrid(), and HexPoints2SpatialPolygons():

hpts <- sp:::genHexGrid(dx=0.1, ll=c(0, 0), ur=c(1, 1))
pols <- HexPoints2SpatialPolygons(SpatialPoints(hpts))
plot(pols)

Hope this helps,

Roger