random_polygon: Generate random polygon

Description Usage Arguments Examples

View source: R/random_polygon.R

Description

Generates a simple random polygon. Returns a data frame with the ordered vertex co-ordinates and data for animating the algorithm

Usage

1
random_polygon(points = NA, n = 0, X = 10000, Y = 10000)

Arguments

points

A data frame with the (x, y) coordinates of the points (if left blank, points are generated at random)

n

If points not given, the number of polygon vertices to be randomly-generated

X

The maximum x-coordinate of the polygon

Y

The maximum y-coordinate of the polygon

Examples

1

marcusvolz/steiner documentation built on April 25, 2018, 12:14 p.m.