[R] USA map

Ray Brownrigg ray at mcs.vuw.ac.nz
Wed Nov 5 20:17:09 CET 2003


> 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)

Ray Brownrigg




More information about the R-help mailing list