[R] USA map

Jari Oksanen jarioksa at sun3.oulu.fi
Thu Nov 6 07:13:42 CET 2003


On Wed, 2003-11-05 at 21:17, Ray Brownrigg wrote:
> > Ivar Herfindal <Ivar.Herfindal at bio.ntnu.no> wrote:
> > 
> > On Wed,  5 Nov 2003 11:28:42 +0100 (MET), Mathieu Ros 
> > <mros at autan.toulouse.inra.fr> wrote:
> > 
> > >>>>>> "k" == kjetil  <kjetil at entelnet.bo> disait:
> > >
> > > <snip>
> > > k> I also tried
> > >
> > > k>> map("worldHires","sweden")
> > > k>> map("worldHires","denmark") # which comes out very small since it
> > > k>                              # includes the Faroe k>                   
> > > # islands properly faraway
> > >
> > > and, just to know, how would you do to plot *only* continental
> > > denmark? The same applies for france, UK, ...
> > >
> > Hello
> > 
> > One simple way of doing it is to specify the xlim and ylim of your map, 
> > e.g. library(maps)
> > map('world', 'Norway', xlim=c(5, 33), ylim=c(55, 75))
> > 
> But the 'best' way is RTFM!
> map("world", "Norway", exact=T)
> 
Actually this not a good way, since then you have to trust CIA and its
naming conventions. All large coastal islands are left out (Lofoten
etc), although for some peculiar reason, Tromsø seems to be there.
However, even continental parts of eastern Finmark are excluded (I hope
this does not have political implications). Just compare the following
maps:

map("worldHires","Norway", exact=TRUE, type="n")
map("worldHires","Norway", add=TRUE)
map("worldHires","Norway", add=TRUE, exact=TRUE, col="red")

By the way, where is Estonia? Couln't find it with any strings I could
imagine. Some R core developers have frequented Estonia, so it would be
nice to have that in the map.

cheers, jari oksanen
-- 
Jari Oksanen -- Biologian laitos, Oulun yliopisto, 90014 Oulu
Puh. (08) 553 1526, käsi 040 5136529, fax (08) 553 1061
sposti jari.oksanen at oulu.fi, kotisivu http://cc.oulu.fi/~jarioksa/




More information about the R-help mailing list