[R-sig-Geo] Extract coordinates from SpatialPolygonsDataFrame

Agustin Lobo alobolistas at gmail.com
Fri Mar 20 17:00:41 CET 2009


Hadley,

It would be great if you could put your code
in the wiki
http://wiki.r-project.org/rwiki/doku.php?id=tips:spatial-data

I think that David Hugh-Jones has contributed a lot to
this site and he might advice on the best way of doing it
(David: sorry if I'm wrong on this)

Agus

hadley wickham wrote:
> I have the following code in ggplot2 for turning a SpatialPolygon into
> a regular data frame of coordinates.  You'll need to load ggplot2, and
> then run fortify(yoursp).
>
>   
.../...

-------------- next part --------------
A non-text attachment was scrubbed...
Name: alobolistas.vcf
Type: text/x-vcard
Size: 251 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20090320/d293d21d/attachment.vcf>


More information about the R-sig-Geo mailing list