Version 0.2.0 of the packcircles package has just been published on CRAN. This package provides functions to find non-overlapping arrangements of circles in bounded and unbounded areas. <p></p>The package how has a new <code>circleProgressiveLayout</code> function. It uses an efficient deterministic algorithm to arrange circles by consecutively placing each one externally tangent to two previously placed circles while avoiding overlaps. It was adapted from a <a href="https://github.com/pmenzel/packCircles">version written in C</a> by Peter Menzel who lent his support to creating this R/Rcpp version. <p></p>The underlying algorithm is described in the paper: Visualization of large hierarchical data by circle packing by Weixin Wang, Hui Wang, Guozhong Dai, and Hongan Wang. Published in Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, 2006, pp. 517-520 (Available from <a href="https://dl.acm.org/citation.cfm?id=1124851">ACM</a>). <p></p> Here is a small example of the new function, taken from the package vignette: <pre><code><br>library(packcircles)<br>library(ggplot2)<br><br>t   theme(panel.grid = element_blank(), <br>        axis.text=element_blank(),<br>        axis.ticks=element_blank(), <br>        axis.title=element_blank())<br><br>theme_set(t)<br><br># circle areas<br>areas <br># arrange circles from small to large<br>packing1 dat1 <br># arrange same circles from large to small<br>packing2 dat2 <br>dat   cbind(dat1, set = 1), <br>  cbind(dat2, set = 2) )<br><br>ggplot(data = dat, aes(x, y)) + <br>  geom_polygon(aes(group = id, fill = -id), <br>               colour = &quot;black&quot;, show.legend = FALSE) +<br><br>  scale_fill_distiller(palette = &quot;RdGy&quot;) +<br><br>  coord_equal() +<br><br>  facet_wrap(~set, <br>             labeller = as_labeller(<br>               c('1' = &quot;small circles first&quot;, <br>                 '2' = &quot;big circles first&quot;))<br>             )<br></code></pre> <a href="https://1.bp.blogspot.com/-pkx_OS27QUQ/WOdcPPCkdXI/AAAAAAAAAeU/iqMbXyZ2rEA-M-sXLLcJHexBQOr9ITmMwCPcB/s1600/flowerheads.png"></a> <p></p>The <a href="https://cran.r-project.org/web/packages/packcircles/vignettes/progressive_packing.html">package vignette for the new function</a> has more examples including how to use ggplot2 and ggiraph to create an SVG image of a circle layout with pre-defined colours and dynamic labelling. <p></p>For those who prefer simpler things, the package can also be used quite successfully with base graphics. <p></p> <h3>Note for existing users</h3>This new version has also seen a general tidy up of the existing functions in an attempt to make things consistent across the package. In particular: <ul><li><code>circleLayout</code> has been replaced by a new function <code>circleRepelLayout</code>. The new function accepts circles sizes as either areas or radii, with the default being area, unlike <code>circleLayout</code> which assumed sizes were radii. The type of size value can be specified using the <code>sizetype</code> argument.</li> <li><code>circlePlotData</code> has been replaced by a new function <code>circleLayoutVertices</code>. The new function has a <code>sizetype</code> argument to specify whether the input circle sizes are areas or radii. By default, radius is assumed as this matches the output of the layout functions (I'll wait to hear if this causes any confusion).</li></ul> In both cases the original function has been retained for backwards compatibility but is deprecated and will be removed in a future release.