s2looplist | R Documentation |
Create a list of loops on the sphere.
s2looplist(...)
... |
Input to create the loops from. Each input should be a matrix or
data.frame with the coordinates of each vertex of the loop in each row. A
|
A list of loops with class s2looplist
.
loop1 <- cbind(lon = c(0,60,60,0), lat = c(-40,-40,40,40)) loop2 <- cbind(lon = c(30,90,90,30), lat = c(-40,-40,40,40)) x <- s2looplist(loop1, loop2) y <- s2looplist(x, loop1) z <- s2looplist(x, s2polygon(loop1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.