create_poly_packings: Create polygons of a given area that do not overlap

Description Usage Arguments Value Examples

View source: R/poly-packing.R

Description

Create polygons of a given area that do not overlap

Usage

1
create_poly_packings(areas, n_points)

Arguments

areas

numeric vector of areas

n_points

number of points to create the polygon. Three = triangle, and about 50 or more gives a convincing circle.

Value

tibble of x, y coords of the points, and id, identifying each polygon

Examples

1
2
# create a bunch of triangles that do not overlap
create_poly_packings(areas = c(1:2), n_points = 3)

njtierney/ishihara documentation built on May 31, 2020, 9:01 a.m.