hexagons

0th

Percentile

Hexagons

Create hexagon polygons

Usage
hexagons(x, res = 100, ...)
Arguments
x

sp SpatialDataFrame class object

res

Area of resulting hexagons

...

Additional arguments passed to spsample

Value

SpatialPolygonsDataFrame OBJECT

Note

depends: sp

Aliases
  • hexagons
Examples
# NOT RUN {
require(sp)
  data(meuse)
    coordinates(meuse) <- ~x+y 

hex.polys <- hexagons(meuse, res=100)   
  plot(hex.polys)
    plot(meuse,pch=20,add=TRUE)

# Points intersecting hexagons  
hex.pts <- na.omit(over(meuse,hex.polys))
(hex.pts <- data.frame(PTID=rownames(hex.pts), hex.pts)) 

# }
Documentation reproduced from package spatialEco, version 1.3-2, License: GPL-3

Community examples

Looks like there are no examples yet.