Optimize the location of text labels to minimize overplotting text.
Usage
label_auto(
x,
y = NULL,
...,
labels = seq_along(x),
segment = FALSE,
box = FALSE
)
Arguments
- x, y
A
numeric
vector giving the x and y coordinates of a set of points. Ify
isNULL
, an attempt is made to interpretx
in a suitable way (seegrDevices::xy.coords()
).- ...
Further arguments to be passed to
graphics::text()
, particularly, character expansion,cex
and color,col
.- labels
A
character
vector orexpression
specifying the text to be written.- segment
A
logical
scalar.- box
A
logical
scalar.
See also
Other graphic tools:
circle()
,
inch2line()
,
label_percent()