View source: R/circleRepelLayout.R
circleLayout | R Documentation |
This function is deprecated and will be removed in a future release.
Please use circleRepelLayout
instead.
circleLayout(xyr, xlim, ylim, maxiter = 1000, wrap = TRUE, weights = 1)
xyr |
A 3-column matrix or data frame (centre X, centre Y, radius). |
xlim |
The bounds in the X direction; either a vector for [xmin, xmax)
or a single value interpreted as [0, xmax). Alternatively, omitting this
argument or passing any of |
ylim |
The bounds in the Y direction; either a vector for [ymin, ymax)
or a single value interpreted as [0, ymax). Alternatively, omitting this
argument or passing any of |
maxiter |
The maximum number of iterations. |
wrap |
Whether to treat the bounding rectangle as a toroid (default
|
weights |
An optional vector of numeric weights (0 to 1 inclusive) to apply to the distance each circle moves during pair-repulsion. A weight of 0 prevents any movement. A weight of 1 gives the default movement distance. A single value can be supplied for uniform weights. A vector with length less than the number of circles will be silently extended by repeating the final value. Any values outside the range [0, 1] will be clamped to 0 or 1. |
A list with components:
A 3-column matrix or data.frame (centre x, centre y, radius).
Number of iterations performed.
This function assumes that circle sizes are expressed as radii
whereas the default for circleRepelLayout
is area.
circleRepelLayout
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.