Hi all,

I am plotting some data, and use text() to get variable names next to
points on the graph. What is the best way to make sure that these text
labels are readable and not overlapping when two datapoints are close?
I've tried using jitter(), but the effect is random and doesn't always
give a good result.
Any suggestions would be most appreciated.

Best regards,

Gustaf

Example:
--------------
 x<-rnorm(20)
 x.labels<-vector(length=length(x))
 for(i in 
1:length(x))x.labels[i]<-paste(sample(LETTERS,5,replace=T),collapse="")
 y<-rnorm(length(x))
 plot(x,y)
 text(x,y,x.labels)
###Most of the time some of the labels end up unreadable. ####
-------------------

-- 
Gustaf Rydevik, M.Sci.
tel: +46(0)703 051 451
address:Essingetorget 40,112 66 Stockholm, SE
skype:gustaf_rydevik

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to