[R] maps in R
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('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
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.
> ---------- 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:
> 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.
> 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