[R-sig-Geo] spread labels, plotrix package

Short, Tom TShort at epri.com
Wed Jun 6 17:13:51 CEST 2007


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: r-sig-geo-bounces at stat.math.ethz.ch
[mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of Laurence
Amilhat
Sent: Wednesday, June 06, 2007 10:27 AM
To: r-sig-geo at 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: laurence.amilhat at toulouse.inra.fr =

_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PointLabelSANNandGA.R
Type: application/octet-stream
Size: 7986 bytes
Desc: PointLabelSANNandGA.R
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20070606/e41d2e7a/attachment.obj>


More information about the R-sig-Geo mailing list