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, ...)# S3 method for default
as_polygon(x, y = NULL, ...)
# S3 method for curve
as_polygon(x, y = NULL, ...)
as_points(x, y = NULL)
any specification of 2-d points, or a "curve" object
additional arguments not currently used
a data frame with components x and y
A 'points' object is defined as a data frame with numeric columns x and y.