empty.grid: empty grid

empty.gridR Documentation

empty grid

Description

Label placement method for scatterplots that ensures labels are placed in different places. A grid is drawn over the whole plot. Each cluster is considered in sequence and assigned to the point on this grid which is closest to the point given by the input data points. Makes use of attr(d,"orig.data").

Usage

empty.grid(d, debug = FALSE, 
    ...)

Arguments

d

Data frame of target points on the scatterplot for each label.

debug

Show debugging info on the plot?

...

ignored.

Value

Data frame with columns groups x y, 1 line for each group, giving the positions on the grid closest to each cluster.

Author(s)

Toby Dylan Hocking


tdhock/directlabels documentation built on April 21, 2024, 11:32 a.m.