[R-sig-Geo] spsample: defining the size of the cell in an hexagonal grid
Manuel Spínola
mspinola10 at gmail.com
Wed Mar 1 05:33:05 CET 2017
Dear list members,
How can I define the size in hectares of the cell when doingan hexagonal
grid with the function spsample. What it means "cellsize"? I want to
create cell sizes according to some specific number of hectares. How can I
do it?
data(meuse.grid)
gridded(meuse.grid) = ~x+y
plot(meuse.grid)
HexPts <-spsample(meuse.grid, type="hexagonal", cellsize=1000)
HexPols <- HexPoints2SpatialPolygons(HexPts)
plot(HexPols[meuse.grid,], add=TRUE)
--
*Manuel Spínola, Ph.D.*
Instituto Internacional en Conservación y Manejo de Vida Silvestre
Universidad Nacional
Apartado 1350-3000
Heredia
COSTA RICA
mspinola at una.cr <mspinola at una.ac.cr>
mspinola10 at gmail.com
Teléfono: (506) 8706 - 4662
Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list