Re: [R] overlapping labels

From: Jim Lemon <>
Date: Tue, 04 Dec 2007 20:47:33 +1100

Biscarini, Filippo wrote:
> Good evening,
> I am trying to add labels to the point of a simple plot, using the
> text() function; the problem is that sometimes, if two points are too
> close to each other, labels overlap and are no longer readable.
> I was wondering whether there are options that I can use to prevent this
> overlapping (by, for example, placing labels alternatively above and
> below the plotted curve), or whether I should use another set of
> graphical functions (grid or lattice packages).
> Does anybody have suggestions?
Hi Filippo,
Have a look at thigmophobe.labels in the plotrix package.

Jim mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 04 Dec 2007 - 09:48:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 04 Dec 2007 - 10:30:17 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.