Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

newsp

Add a SpatialPolygons object to a predefined slot in a trigrid or hexagrid object


Description

Add a SpatialPolygons object to a predefined slot in a trigrid or hexagrid object

Usage

newsp(gridObj, res = NULL)

## S4 method for signature 'trigrid'
newsp(gridObj, res = NULL)

Arguments

gridObj

(trigrid or hexagrid) An icosahedral grid.

res

(numeric) The number of points inserted between two vertices, passed to SpPolygons.

Value

A trigrid or hexagrid object with the new @sp slot.

Examples

a<-trigrid(4)
a<-newsp(a)
plot(a)

icosa

Global Triangular and Penta-Hexagonal Grids Based on Tessellated Icosahedra

v0.10.1
GPL-3
Authors
Adam T. Kocsis [aut, cre]
Initial release
2021-01-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.