Skip to content

rotate sp.objects in spplot?

4 messages · Myles Falconer, Roger Bivand

#
On Tue, 27 Sep 2011, Myles Falconer wrote:

            
library(maptools)
?elide

So:

arrow = list("SpatialPolygonsRescale", elide(layout.north.arrow(),
   rotate=12), offset = c(178750,332500), scale = 400)

looks about OK. Do you know that your data have non-North Northings (I 
guess you do!), the presumption in "Spatial" objects is that North is 
aligned with the vertical axis?

Roger

  
    
#
Thanks very much Roger!

Is it possible to also rotate sp.text with elide?

Myles

-----Original Message-----
From: Roger Bivand [mailto:Roger.Bivand at nhh.no]
Sent: September-28-11 3:42 AM
To: Myles Falconer
Cc: 'r-sig-geo at r-project.org'
Subject: Re: [R-sig-Geo] rotate sp.objects in spplot?
On Tue, 27 Sep 2011, Myles Falconer wrote:

            
library(maptools)
?elide

So:

arrow = list("SpatialPolygonsRescale", elide(layout.north.arrow(),
   rotate=12), offset = c(178750,332500), scale = 400)

looks about OK. Do you know that your data have non-North Northings (I
guess you do!), the presumption in "Spatial" objects is that North is
aligned with the vertical axis?

Roger
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
#
On Wed, 28 Sep 2011, Myles Falconer wrote:

            
No, but you could check the rotation parameters for the underlying 
graphics method, which seem to be srt=:

text1 = list("sp.text", c(178600,333090), "0", srt=-12)

Roger