as.s2pp.s2grid | R Documentation |
Convert a Grid on the Sphere to a Point Pattern on the Sphere
## S3 method for class 's2grid' as.s2pp(X, ...)
X |
Object of class |
... |
Ignored. |
Point pattern of class s2pp
. The points are the grid cell
centers.
poly <- s2polygon(cbind(lon = c(-20,-10,10,20,10,-10), lat = c(0, -10, -10, 0, 10, 10))) grid <- s2grid.s2polygon(poly, 5) pp <- as.s2pp(grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.