[R-sig-Geo] [Q]: Converting SpatialPolygons with proj4string to spatstat owin

Michael Höhle Michael.Hoehle at stat.uni-muenchen.de
Fri Apr 24 12:34:33 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear Roger,

>> The plot method for Spatial* objects looks to see whether the geometries
>> are in geographical coordinates. If they are, it applies a correction to
>> the y axis depending on the distance from the Equator. You can get the
>> spatstat look by fixing the aspect to 1 in plot(de, asp=1), overriding
>> the adjustment.
> 

Thats very helpful. Fiddling around with the aspect ratio, I tricked
spatstat to use the correct aspect ratio:

plot(owin.de,asp=attr(de,"asp"),main="")

to give me a nice looking map plotted with spatstat.

>> Project the geometries to the plane (spTransform methods in rgdal).

Ok, I'll look into that.

Thanks for the help.

Best regards,

Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJ8ZW5JenxFqlYkSERAmA5AKC0zaSIRGchcvaCIBF+KALS4n7B8ACfRaIe
ve26DmdtmILiNCysJ53oE0M=
=mLrH
-----END PGP SIGNATURE-----



More information about the R-sig-Geo mailing list