as_polygon | R Documentation |
A simple polygon is here defined as a data frame with numeric components x and y without any duplicate rows. The order of rows is significant in defining the associated figure.
as_polygon(x, y = NULL, ...) ## Default S3 method: as_polygon(x, y = NULL, ...) ## S3 method for class 'curve' as_polygon(x, y = NULL, ...) as_points(x, y = NULL)
x, y |
any specification of 2-d points, or a "curve" object |
... |
additional arguments not currently used |
A 'points' object is defined as a data frame with numeric columns x and y.
a data frame with components x and y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.