Optimize the location of text labels to minimize overplotting text.
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()
).- labels
A
character
vector orexpression
specifying the text to be written.- type
A
character
string specifying the shape of the field. It must be one of "text
", "shadow
" or "box
". Any unambiguous substring can be given.- ...
Further arguments to be passed to
graphics::text()
, particularly, character expansion,cex
and color,col
.