[R] USA map

Ray Brownrigg ray at mcs.vuw.ac.nz
Tue Nov 4 20:21:47 CET 2003


Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> 
> On Tue, 4 Nov 2003 kjetil at entelnet.bo wrote:
> 
> > On 3 Nov 2003 at 15:04, apjaworski at mmm.com wrote:
> > 
> > > 
> > > I believe in R you need
> > > 
> > > library(maps)
> > > 
> > > before using usa().  Of course, the library has to be installed first.
> > > 
> > 
> > Yes, I new that. When I did help.search("usa") I HAD maps
> > attached. It dosen't have any function usa(). R is more international 
> > minded:
> > 
> > > library(maps)
> > > usa()
> > Error: couldn't find function "usa"
> > > map('usa')
> > > 
> > map('china')
> > map('bolivia')
> > 
> > and so on also works!
> 
> You need library(mapdata) for those.
> 
Except the Bolivia map must be a local one (from kjetil at entelnet.bo?);
it is not in library(mapdata).

Ray Brownrigg




More information about the R-help mailing list