sHexPolygon {supraHex} | R Documentation

## Function to extract polygon location per hexagon within a supra-hexagonal grid

### Description

`sHexPolygon` is supposed to extract polygon location per hexagon within a supra-hexagonal grid

### Usage

    sHexPolygon(sObj, area.size = 1)

### Arguments

`sObj` | an object of class "sMap" or "sInit" or "sTopol" or "sHex"
`area.size` | an inteter or a vector specifying the area size of each hexagon

### Value

a data frame of five columns ('x','y','index','stepCentroid','angleCentroid') storing polygon location per hexagon.

### Note

None

### See Also

`sHexGridVariant`, `sPipeline`

### Examples

    sObj <- sTopology(xdim=4, ydim=4, lattice="hexa", shape="suprahex")
    df_polygon <- sHexPolygon(sObj, area.size=1)

[Package supraHex version 1.18.0 Index]