fishnet: Create a fishnet of regular grids

Description Usage Arguments Value References Examples

View source: R/fishnet.R

Description

The fishnet function creates a regular grid of locations covering the study area at various grain sizes.

Usage

1
fishnet(mask, res = 0.5, type = "square")

Arguments

mask

a polygon shapefile covering the boundary of the survey region.

res

the grain size of the grid cells in decimal degrees (default).

type

the type of grid cell; either “square” (default) for square grids, or “hexagon” for hexagonal grids.

Value

A spatial polygon object of equal area grid cells covering the defined area.

References

Phillips, S.J., Anderson, R.P. & Schapire, R.E. (2006) Maximum entropy modeling of species geographic distributions. Ecological Modelling 190: 231-259.

Examples

1
2
3
file <- system.file("nigeria/nigeria.rds", package="phyloregion")
d <- readRDS(file)
d1 <- fishnet(d, res = 0.75)

Example output



phyloregion documentation built on May 1, 2021, 9:06 a.m.