[R] USA map

kjetil@entelnet.bo kjetil at entelnet.bo
Mon Nov 3 20:56:23 CET 2003


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




More information about the R-help mailing list