Description Usage Arguments Value Examples
Generates a set of (x, y) points that are never closer than some minimum distance in a canvas of given width and height.
1 | poisson_disc(width, height, min_dist, k = 30)
|
width |
The canvas width (numeric) |
height |
The canvas height (numeric) |
min_dist |
The minimum distance between points (numeric) |
k |
Samples to choose before rejection (numeric), this should usually stay at 30 |
A data frame with the x and y coordinates of the points.
1 2 | #generate a set of points within a 400x400 canvas with a minimum distance of 20
pts <- poisson_disc(400, 400, 20)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.