addHolesToPolygons | R Documentation |
Add holes to a data.frame
of cell polygon coordinates
addHolesToPolygons(poly)
poly |
A
|
A data.frame
x <- c(2053, 2053, 2053, 2056, 2059, 2059)
y <- c(51, 54, 57, 57, 57, 54)
poly <- data.frame(cell = 1, x = x, y = y)
poly <- addHolesToPolygons(poly)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.