determineOrder: Determine order in which to pass through a set of points

Description Usage Arguments Value

Description

Greedy algorithm to connect points, with the idea that a point is connected by a line with the two points closest to each, that haven't yet been connected into the shape. Results depend on the starting point.

Usage

1

Arguments

x

x coordinates

y

y coordinates

Value

vector of indices for ordered traversion along border


gglogo documentation built on Jan. 29, 2020, 1:09 a.m.