[R] Avoiding overplotting of text.

hadley wickham h.wickham at gmail.com
Mon Feb 25 22:36:00 CET 2008


>  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.

Have a look at pointLabel in maptools -
http://finzi.psych.upenn.edu/R/library/maptools/html/pointLabel.html


-- 
http://had.co.nz/



More information about the R-help mailing list