Learn R Programming

ggrepel (version 0.4)

repel_boxes: Adjust the layout of a list of potentially overlapping boxes.

Description

Adjust the layout of a list of potentially overlapping boxes.

Usage

repel_boxes(boxes, xlim, ylim, force = 1e-06, maxiter = 2000L)

Arguments

boxes
A list of numeric vectors representing a box like list(c(x1, y1, x2, y2), c(x1, y1, x2, y2), ...)
xlim
A numeric vector representing the limits on the x axis like c(xmin, xmax)
ylim
A numeric vector representing the limits on the y axis like c(ymin, ymax)
force
Magnitude of the force (defaults to 1e-6)
maxiter
Maximum number of iterations to try to resolve overlaps (defaults to 2000)