s2im | R Documentation |
Make an Image/Raster Object on the Sphere
s2im(grid, values)
grid |
An |
values |
A |
Object of class s2im
.
poly <- s2polygon(cbind(lon = c(-20,-10,10,20,10,-10), lat = c(0, -10, -10, 0, 10, 10))) grid <- s2grid.s2polygon(poly, 5) im <- s2im(grid, 1:length(grid)) plot(im)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.