repel_boxes | R Documentation |
Adjust the layout of a list of potentially overlapping boxes.
repel_boxes(
data_points,
point_size,
point_padding_x,
point_padding_y,
boxes,
xlim,
ylim,
hjust,
vjust,
force_push = 1e-07,
force_pull = 1e-07,
max_time = 0.1,
max_overlaps = 10,
max_iter = 2000L,
direction = "both",
verbose = 0L
)
data_points |
A numeric matrix with rows representing points like
|
point_size |
A numeric vector representing the sizes of data points. |
point_padding_x |
Padding around each data point on the x axis. |
point_padding_y |
Padding around each data point on the y axis. |
boxes |
A numeric matrix with rows representing boxes like
|
xlim |
A numeric vector representing the limits on the x axis like
|
ylim |
A numeric vector representing the limits on the y axis like
|
hjust |
Optional horizontal adjustment of labels |
vjust |
Optional vertical adjustment of labels |
force_push |
Magnitude of the push force (defaults to |
force_pull |
Magnitude of the pull force (defaults to |
max_time |
Maximum number of seconds to try to resolve overlaps (defaults to 0.1) |
max_overlaps |
Maximum number of overlaps without triggering a warning |
max_iter |
Maximum number of iterations to try to resolve overlaps (defaults to 2000) |
direction |
Character, one of "x", "y", or "both |
verbose |
Boolean, |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.