Laurence, it's a tough problem. See the following links:

http://en.wikipedia.org/wiki/Automatic_label_placement
http://www.szoraster.com/Cartography/PracticalExperience.htm
http://www.eecs.harvard.edu/~shieber/Projects/Carto/carto.html
http://i11www.iti.uni-karlsruhe.de/map-labeling/bibliography/

I've got some R code enclosed that uses simulated annealing or genetic
algorithms to find suitable locations. The code is granted to the public
domain. The genetic algorithm portion is adapted from the python code
here:

http://meta.wikimedia.org/wiki/Map_generator

I thought I had posted this to r-sig-geo before, but I couldn't find it.
Anyway, I've only lightly tested it, and it could probably be tweaked
more.

- Tom 

Tom Short
Electric Power Research Institute (EPRI)
 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Laurence
Amilhat
Sent: Wednesday, June 06, 2007 10:27 AM
To: r-sig-geo@stat.math.ethz.ch
Subject: [R-sig-Geo] spread labels, plotrix package

Hello,


I am using the plotrix package to add labels on my plot (a map exactly).
But when I have a lot of points, the labels are overlapping, Do you know
how can I avoid the labels overlap?

I am using the spread.labels, I tried thigmophobe.labels and
boxed.labels with no better results.

Any idea are welcome,

Thank you,

laurence


--
====================================================================
= Laurence Amilhat    INRA Toulouse 31326 Castanet-Tolosan         = 
= Tel: 33 5 61 28 53 34   Email: [EMAIL PROTECTED] =

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Attachment: PointLabelSANNandGA.R
Description: PointLabelSANNandGA.R

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo

Reply via email to