Extract a circular cluster from a square point field

make_cluster(center, r, n_pts)

Arguments

center

Cartesian center of the blob specified as c(x, y).

r

Radius of the blob.

n_pts

Number of points in the cluster.

Value

Vector of points in the shape of a circle with radius r and center (x,y).