The function will create a SpatialPolygons
class 2d representation of the icosahedral grid.
Usage
SpPolygons(gridObj, ...)
# S4 method for trigrid
SpPolygons(gridObj, res = NULL)
# S4 method for hexagrid
SpPolygons(gridObj, res = NULL)
Arguments
- gridObj
- ...
Arguments passed to class-specific methods.
- res
(
numeric
) The number of points inserted between two vertices, orNULL
, if this is to be set by the package. The default method increases resolution with lower tessellation values, and is higher for higher absolute latitudes.
Value
A SpatialPolygons
class object.
Examples
a <- trigrid()
sp <- SpPolygons(a)