as_polygon {frenchCurve}R Documentation

Make a Simple Polygon or Points

Description

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.

Usage

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)

Arguments

x, y

any specification of 2-d points, or a "curve" object

...

additional arguments not currently used

Details

A 'points' object is defined as a data frame with numeric columns x and y.

Value

a data frame with components x and y


[Package frenchCurve version 0.2.0 Index]