[R-sig-Geo] Better label placement for polygons

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Thu Jul 19 18:16:55 CEST 2012


Nice, is it the same method as this:

http://proceedings.esri.com/library/userconf/proc01/professional/papers/pap388/p388.htm

Barry

> Surprisingly, the resulting R code is quite fast (no doubt due to the
> very efficient rgeos package!). For a simple polygon it takes just a
> fraction of a second. And it can calculate label position for all the
> polygons in the ‘rworldmap’ world polygons in a few seconds. The
> resulting label placement also seems very good. Here’s the code:
>
-- 
blog: http://geospaced.blogspot.com/
web: http://www.maths.lancs.ac.uk/~rowlings
web: http://www.rowlingson.com/
twitter: http://twitter.com/geospacedman
pics: http://www.flickr.com/photos/spacedman



More information about the R-sig-Geo mailing list