Description Usage Arguments Value See Also Examples
The R package gpclib provides a few algorithms that are useful but it has an internal (very general) representation of polygons. This function converts a simple polygon of class polygon to a gpclib polygon.
1 | poly2gpc(p)
|
p |
A polygon. |
A gpclib polygon.
1 2 3 | p <- newPolygon(c(0,1,2,1,2,0), c(0,0,1,2,3,3))
g <- poly2gpc(p)
plot(g)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.