[R] USA map

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue Nov 4 12:50:38 CET 2003


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.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list