[R] USA map

apjaworski@mmm.com apjaworski at mmm.com
Mon Nov 3 22:04:59 CET 2003


I believe in R you need

library(maps)

before using usa().  Of course, the library has to be installed first.

Cheers,

Andy

__________________________________
Andy Jaworski
Engineering Systems Technology Center
3M Center, 518-1-01
St. Paul, MN 55144-1000
-----
E-mail: apjaworski at mmm.com
Tel:  (651) 733-6092
Fax:  (651) 736-3122


|---------+-------------------------------->
|         |           kjetil at entelnet.bo   |
|         |           Sent by:             |
|         |           r-help-bounces at stat.m|
|         |           ath.ethz.ch          |
|         |                                |
|         |                                |
|         |           11/03/2003 13:56     |
|         |                                |
|---------+-------------------------------->
  >-----------------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                             |
  |      To:       "R-list" <r-help at stat.math.ethz.ch>                                                                          |
  |        Martin Wegmann <mailinglist2_wegmann at web.de>                                                                         |
  |      cc:       "Owen, Jason" <wowen at richmond.edu>                                                                           |
  |      Subject:  Re: [R] USA map                                                                                              |
  >-----------------------------------------------------------------------------------------------------------------------------|




On 3 Nov 2003 at 16:33, Martin Wegmann wrote:

> On Monday 03 November 2003 15:46, Owen, Jason wrote:
> > R users,
> >
> > In S, there was a function called usa() that
> > would draw the map of the United States, plus
> > it had other options for graphics.  I have looked
> > but I can't find the equivalent in R.  Is there one?
> >Description
>
> I don't know the usa() function in S but usa() in R gives a map of the US

Where did you find that function? In rw1080 on windows XP I get:

> usa()
Error: couldn't find function "usa"
>

(and help.search("usa") does'nt give anything usefull)

Kjetil Halvorsen

>
> that's the output of a "usa " search, perhaps that is what you are
looking
> for:
>
> cheers Martin
>
> P.S.: www.freegis.org -> GeoData is worth a look for more maps
>
> usa() {map}
>
>  This database produces a map of the United States mainland generated
from US
> Department of the Census data (see the reference).
>
>
> Usage
>
> data(usaMapEnv)
>
> Format
>
>
>  The data file is merely an assignment to a character string which
specifies
> the name of an environment variable which contains the base location of
the
> binary files used by the map drawing functions. This environment variable

> (R_MAP_DATA_DIR for the datasets in the maps package) is set at package
load
> time if it does not already exist. Hence setting the environment variable

> before loading the package can override the default location of the
binary
> datasets.
>
>
> References
>
>
>  Richard A. Becker, and Allan R. Wilks, "Maps in S", AT&T Bell
Laboratories
> Statistics Research Report [93.2], 1993.
>
>
> Richard A. Becker, and Allan R. Wilks, "Constructing a Geographical
Database",
> AT&T Bell Laboratories Statistics Research Report [95.2], 1995.
>
>
> US Department of Commerce, Census Bureau, County Boundary File, computer
tape,
> available from Customer Services, Bureau of the Census, Washingdon DC
20233.
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help

______________________________________________
R-help at stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help




More information about the R-help mailing list