Nicola Sturaro Sommacal
2008-Oct-12 08:30 UTC
[R] Avoid overlap of labels in a scatterplot
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? Thank you. Nicola Sturaro
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. Jim