Description Usage Arguments Value Examples
View source: R/CreatePolygon.R
CreatePolygon
creates a matrix to represent the polygon that connects several points
1 |
... |
An undetermined number of points introduced by the user in the form of vectors |
Returns a matrix which contains the points of the polygon. Each row represents one of the points
1 2 3 4 | P1 <- c(0,0)
P2 <- c(1,1)
P3 <- c(2,0)
Poly <- CreatePolygon(P1, P2, P3)
|
[1] "Some of the inserted points are collinear. This could lead to a defective polygon."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.