[R] maps in R

Randall Skelton rhskelto at atm.ox.ac.uk
Fri Nov 2 16:44:26 CET 2001


While I am not an expert in either R or S, I believe the maps library is
somewhat broken with respect to projections.  I have downloaded the
PDF of 'Maps in S' by R.A. Becker and A.R. Wilks and attempted in vain to
reproduce the figures.  I have no trouble drawing simple maps, i.e.
'map("world")' and 'map("world.full", "canada")' work fine.  However,
when I attempt to incorporate a projection and parameter arguments, I
usually end up with a plot representing an amoeba (full res maps)
or a badly drawn parallelogram (low res maps).

map('world',xlim=range(-180,180),ylim=range(-90,90),proj='rectangular',pa='0')
map('state', proj='albers', param=c(30,40))
map('world.full', ylim=c(-85,85), xlim=c(-180,180), pr='mercator')

Any ideas, comments and suggestions are greatly appreciated.  Does anyone
know who the author of this package is?  I found it at
ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/ and I am using R-1.3.1 on
Linux 2.4.x-x.

Cheers,
Randall

On Wed, 31 Oct 2001, Claudia Tebaldi wrote:

> Here is the answer to an old question of mine, regarding maps in R
> Hope this help.
>
> claudia
>
>
>
> ---------- Forwarded message ----------
> Date: Mon, 25 Jun 2001 13:48:05 -0400
> From: Kieran Healy <kjhealy at Princeton.EDU>
> To: Claudia Tebaldi <tebaldi at ucar.edu>
> Subject: Re: [R] maps in R
>
> Hi  Claudia --
>
> you can get the maps() library from here:
>
> ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/
>
> It's not on CRAN because it's still in development. I've been using it
> for a while with no trouble, though. As far as I remember, it installs
> like a regular R library.
>
> Kieran
>
> Claudia Tebaldi wrote:
> >
> > Hi everybody
> >
> > Does any of you know how to mimick the functionality of the Splus
> > library "maps "  in R?
> >
> > I.E.:I'd like to draw contours of the US and individual states, and be
> > able to overlay points by giving lat/long coordinates to points() or
> > text() functions.  I'd be a happy camper with just the state-level
> > resolution. . . .
> >
> > thanks in advance
> >
> > claudia
>
> --
> Kieran Healy
> Department of Sociology, Princeton University,
> Princeton NJ 08544. kjhealy at princeton.edu
>
>
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list