| s2grid.s2polygon | R Documentation | 
Make a grid over spherical polygonal region
s2grid.s2polygon(x, level, ...)
x | 
 Polygon on the sphere of class   | 
level | 
 Integer level of the pixels between 0 (each pixel is huge – millions of square kilometres on Earth) and 30 (each pixel is tiny – approximately a square cm on Earth).  | 
... | 
 Ignored.  | 
Object of class "s2grid", which is just a vector of unique ids of the cells making up the grid.
poly <- s2polygon(cbind(lon = c(-20,-10,10,20,10,-10), lat = c(0, -10, -10, 0, 10, 10))) grid <- s2grid.s2polygon(poly, 5) length(grid)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.