[R] Avoid overlap of labels in a scatterplot
Felix Andrews
felix at nfrac.org
Sun Oct 12 14:06:19 CEST 2008
2008/10/12 Jim Lemon <jim at bitwrit.com.au>:
> Nicola Sturaro Sommacal wrote:
>>
>> Dear R users,
>> I realise a scatterplot by
>> plot(x,y)
>> and I add the labels by
>> text(x,y,labels,pos=1).
>>
>> How can I avoid, automatically, that labels overlap, like happen in SPSS?
>
> Hi Nicola,
> thigmophobe.labels in the plotrix package tries to avoid label crashes, and
> you can (see the help page) modify the position of a few labels if it
> doesn't quite succeed.
There is also pointLabel() in the maptools package.
-Felix
--
Felix Andrews / 安福立
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8
More information about the R-help
mailing list