Description Usage Arguments Details Value
Simple circle packing algorithm based on inverse size weighted repulsion
1 | PackCircles(config, extent, edge_buffered, max_iter, overlap)
|
config |
matrix with two cols: radius, n |
extent |
extent of bounding rectangle: c(x_min, x_max, y_min,y_max). Default is (0, 10000, 0, 10000). |
edge_buffer |
distance from edge of extent that circle center's must be placed |
max_iter |
maximum number of iterations to try |
overlap |
allowable overlap expressed as proportion of joint radii |
plot |
logical, whether or not to draw a plot |
Original code from: http://www.r-bloggers.com/circle-packing-with-r Slight modifications were made for code consistency and additional functionality.
A dataframe of points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.