[R] map() and C++ interface

Ray Brownrigg Ray.Brownrigg at mcs.vuw.ac.nz
Thu Feb 3 21:24:07 CET 2000


For the record, this was my reply to Nokome. The package contains all
the standard Becker & Wilks US databases (usa, county, state), as well
as world, world2 (0 to 360 degrees instead of -180 to 180), nz and
rivers. It also has a world cities database and a few other enhancements
(map.axes, map.scale), but does not do the projections that the S[-Plus]
version does.  This latter, coupled with the fact that the database
format varies with platform, is the reason that I have not submitted it
to CRAN.  [I understand also that Ross Ihaka is working on a rewrite.]

> 1.  I am wanting to produce maps of the New Zealand coastline using R.  I
> am aware of the map function in S-plus and was wondering if anyone had
> ported it to R yet.  I could use the 'world' database for the data source
> but since it is very large I was also wondering if anyone had fine scale
> long and lat data for the NZ coatline.
>
I can help you here.  Go to ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/
where there is an R package maps_0.1-2_intel.tar.gz (25MB).  This
includes both high- and medium-resolution NZ map databases.  To install,
just type:
R INSTALL maps_0.1-2_intel.tar.gz
(as long as you have R-0.65.1 or better, you do not even need to unpack
the file).

By the way, I am assuming you are using Linux on Intel for R (you don't
actually say).  There is a SPARC version also, but otherwise you may be
stuck for a suitable database format.
 
Ray Brownrigg
Statistical Computing Manager
School of Mathematical and Computing Sciences
Victoria University of Wellington
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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