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 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Mon, 25 Jun 2001, 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. . . . >A port to R without projection by Ray Brownrigg is available on: ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/ with versions for Linux/Intel or Solaris/Sparc - it''s largish, because it includes the binary versions of the databases. It was last updated in September 2000. It was first mentioned in r-help on 13 November 1999, with the above address. I can confirm that it works for 1.3.0 on RH7.0 Linux Intel:> map(''state'')Happy camping! Roger -- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: Roger.Bivand at nhh.no and: Department of Geography and Regional Development, University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, Poland. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Hello. Any idea if this map package will be ported to R-windows? What is in it that is Unix/Linux dependent? not the computations and projections, must be only the plotting? Date sent: Mon, 25 Jun 2001 20:10:24 +0200 (CEST) From: Roger Bivand <Roger.Bivand at nhh.no> Subject: Re: [R] maps in R To: Claudia Tebaldi <tebaldi at ucar.edu> Copies to: r-help at stat.math.ethz.ch, Gardar Johannesson <gardar at stat.ohio-state.edu> Send reply to: Roger.Bivand at nhh.no> On Mon, 25 Jun 2001, 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. . . . > > > A port to R without projection by Ray Brownrigg is available on: > > ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/ > > with versions for Linux/Intel or Solaris/Sparc - it''s largish, because it > includes the binary versions of the databases. It was last updated in > September 2000. It was first mentioned in r-help on 13 November 1999, with > the above address. > > I can confirm that it works for 1.3.0 on RH7.0 Linux Intel: > > > map(''state'') > > Happy camping! > > Roger > > -- > Roger Bivand > Economic Geography Section, Department of Economics, Norwegian School of > Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, > Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: > Roger.Bivand at nhh.no and: Department of Geography and Regional Development, > University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, > Poland. > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > -.-.- 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. Heberto Ghezzo Ph.D. Meakins-Christie Labs McGill University Montreal - Canada heberto at meakins.lan.mcgill.ca -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 26 Jun 2001, Heberto Ghezzo wrote:> Hello. Any idea if this map package will be ported to R-windows? > What is in it that is Unix/Linux dependent? > not the computations and projections, must be only the plotting?I appears that this is really big-endian vs little-endian. I don''t see why you can''t install the _intel version on Windows. It is not a standard package, though, so you would need to change its Makefiles. By deleting the Makefile and moving all the sources into maps/src I was able to cross-compile it, which indicates some hope.> > Date sent: Mon, 25 Jun 2001 20:10:24 +0200 (CEST) > From: Roger Bivand <Roger.Bivand at nhh.no> > Subject: Re: [R] maps in R > To: Claudia Tebaldi <tebaldi at ucar.edu> > Copies to: r-help at stat.math.ethz.ch, Gardar Johannesson <gardar at stat.ohio-state.edu> > Send reply to: Roger.Bivand at nhh.no > > On Mon, 25 Jun 2001, 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. . . . > > > > > A port to R without projection by Ray Brownrigg is available on: > > > > ftp://ftp.mcs.vuw.ac.nz/pub/statistics/map/ > > > > with versions for Linux/Intel or Solaris/Sparc - it''s largish, because it > > includes the binary versions of the databases. It was last updated in > > September 2000. It was first mentioned in r-help on 13 November 1999, with > > the above address. > > > > I can confirm that it works for 1.3.0 on RH7.0 Linux Intel: > > > > > map(''state'') > > > > Happy camping! > > > > Roger > > > > -- > > Roger Bivand > > Economic Geography Section, Department of Economics, Norwegian School of > > Economics and Business Administration, Breiviksveien 40, N-5045 Bergen, > > Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93 e-mail: > > Roger.Bivand at nhh.no and: Department of Geography and Regional Development, > > University of Gdansk, al. Mar. J. Pilsudskiego 46, PL-81 378 Gdynia, > > Poland. > > > > > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-. > > -.-.- 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. Heberto Ghezzo Ph.D. > Meakins-Christie Labs > McGill University > Montreal - Canada > heberto at meakins.lan.mcgill.ca > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> Hello. Any idea if this map package will be ported to R-windows? > What is in it that is Unix/Linux dependent? > not the computations and projections, must be only the plotting? >Why don''t you try it? I don''t use Windows, so have no hope of doing any testing (and no incentive to try). That said, I think there may still be an issue with licensing of the old AT&T code. It is said to be ''public domain'' and the authors have no problems with wider dissemination, but you try and get an authoritative letter out of Lucent Technologies for some code ''owned'' by AT&T Bell Laboratories 10 years ago..... Further, as Brian Ripley has mentioned, the binary databases are different for big-endian/little-endian, so for a package to work, you would have to go back to the data sources or keep two copies of the databases. This would make the package even larger, unless you extract the databases to a separate package or three. [I use a series of C programs to convert the database formats between (S-Plus) Unix/Windows and between (SPARC) S-Plus and (Intel) R. Until recently I was not able to create new databases under Linux/Intel.] Regards, Ray Brownrigg -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
as pertains the binary databases, I was able to (easily) successfully use the Rstreams functions to read the "opposite"-endian binary file. The binary file was created on a Sun and successfully read on a Pentium: s <- openstream(filename, "read") bogus <- readint(s, n = 1, size = 4, signed = TRUE, swapbytes = TRUE); datvec <- readfloat(s, n=nLats*nLons*nLevels, size=4) bogus <- readint(s, n = 1, size = 4, signed = TRUE, swapbytes = TRUE); closestream(s) In this case, the binary file was a Fortran unformatted write, so there were 4byte record words at the beginning and end. Not using them does make life a little more dangerous. As it turns out, the original "poster" (Claudia) works across town in a different division, we''ll probably work together on this and see what we can come up with. Tim> Date: Wed, 27 Jun 2001 11:03:13 +1200 (NZST) > From: Ray Brownrigg <Ray.Brownrigg at mcs.vuw.ac.nz> > To: r-help at stat.math.ethz.ch > Subject: Re: [R] maps in R > > > Hello. Any idea if this map package will be ported to R-windows? > > What is in it that is Unix/Linux dependent? > > not the computations and projections, must be only the plotting? > > > Why don''t you try it? I don''t use Windows, so have no hope of doing any > testing (and no incentive to try). > > That said, I think there may still be an issue with licensing of the old > AT&T code. It is said to be ''public domain'' and the authors have no > problems with wider dissemination, but you try and get an authoritative > letter out of Lucent Technologies for some code ''owned'' by AT&T Bell > Laboratories 10 years ago..... > > Further, as Brian Ripley has mentioned, the binary databases are > different for big-endian/little-endian, so for a package to work, you > would have to go back to the data sources or keep two copies of the > databases. This would make the package even larger, unless you extract > the databases to a separate package or three. [I use a series of C > programs to convert the database formats between (S-Plus) Unix/Windows > and between (SPARC) S-Plus and (Intel) R. Until recently I was not > able to create new databases under Linux/Intel.] > > Regards, > Ray Brownrigg > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >## Tim Hoar, Associate Scientist email: thoar at ucar.edu ## ## Geophysical Statistics Project phone: 303-497-1708 ## ## National Center for Atmospheric Research FAX : 303-497-1333 ## ## Boulder, CO 80307 http://www.cgd.ucar.edu/~thoar ## -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 27 Jun 2001, Tim Hoar wrote:> as pertains the binary databases, I was able to (easily) successfully > use the Rstreams functions to read the "opposite"-endian binary file. > > The binary file was created on a Sun and successfully read on a Pentium: > > > s <- openstream(filename, "read") > bogus <- readint(s, n = 1, size = 4, signed = TRUE, swapbytes = TRUE); > datvec <- readfloat(s, n=nLats*nLons*nLevels, size=4) > bogus <- readint(s, n = 1, size = 4, signed = TRUE, swapbytes = TRUE); > closestream(s) > > > In this case, the binary file was a Fortran unformatted write, so there > were 4byte record words at the beginning and end. Not using them does > make life a little more dangerous. > > As it turns out, the original "poster" (Claudia) works across town in > a different division, we''ll probably work together on this and see what > we can come up with.Can I suggest you note that R-data.texi says Binary connections (@ref{Connections}) are now the preferred way to handle binary files, and package @pkg{Rstreams} will be withdrawn in late 2001. and act accordingly. readBin, for example, has an `endian'' argument that makes this transparent to the user.> > Tim > > > Date: Wed, 27 Jun 2001 11:03:13 +1200 (NZST) > > From: Ray Brownrigg <Ray.Brownrigg at mcs.vuw.ac.nz> > > To: r-help at stat.math.ethz.ch > > Subject: Re: [R] maps in R > > > > > Hello. Any idea if this map package will be ported to R-windows? > > > What is in it that is Unix/Linux dependent? > > > not the computations and projections, must be only the plotting? > > > > > Why don''t you try it? I don''t use Windows, so have no hope of doing any > > testing (and no incentive to try). > > > > That said, I think there may still be an issue with licensing of the old > > AT&T code. It is said to be ''public domain'' and the authors have no > > problems with wider dissemination, but you try and get an authoritative > > letter out of Lucent Technologies for some code ''owned'' by AT&T Bell > > Laboratories 10 years ago..... > > > > Further, as Brian Ripley has mentioned, the binary databases are > > different for big-endian/little-endian, so for a package to work, you > > would have to go back to the data sources or keep two copies of the > > databases. This would make the package even larger, unless you extract > > the databases to a separate package or three. [I use a series of C > > programs to convert the database formats between (S-Plus) Unix/Windows > > and between (SPARC) S-Plus and (Intel) R. Until recently I was not > > able to create new databases under Linux/Intel.] > > > > Regards, > > Ray Brownrigg > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > > 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 > > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ > > > > ## Tim Hoar, Associate Scientist email: thoar at ucar.edu ## > ## Geophysical Statistics Project phone: 303-497-1708 ## > ## National Center for Atmospheric Research FAX : 303-497-1333 ## > ## Boulder, CO 80307 http://www.cgd.ucar.edu/~thoar ## > > -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- > 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 > _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._ >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 28 Jun 2001, [ISO-8859-1] Göran Broström wrote:> > I want advise on which gcc-version to upgrade to on my RH7.1 Linux: > Redhat announces a new version (mainly fixing bugs), and at the same > time I see gcc-3.0 released (at gcc.gnu.org). Any suggestions? > I could try installing gcc-3.0 and R-1.3.0 if noone else already have.gcc 3.0 works for me as an upgrade on RH6.2, and compiles R-1.3.0 on both Linux and Solaris. I''d go for 3.0. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
I want advise on which gcc-version to upgrade to on my RH7.1 Linux: Redhat announces a new version (mainly fixing bugs), and at the same time I see gcc-3.0 released (at gcc.gnu.org). Any suggestions? I could try installing gcc-3.0 and R-1.3.0 if noone else already have. G?ran -- G?ran Brostr?m tel: +46 90 786 5223 professor fax: +46 90 786 6614 Department of Statistics http://www.stat.umu.se/egna/gb/ Ume? University SE-90187 Ume?, Sweden e-mail: gb at stat.umu.se -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Thu, 28 Jun 2001, Prof Brian Ripley wrote:> On Thu, 28 Jun 2001, [ISO-8859-1] G?ran Brostr?m wrote: > > > > > I want advise on which gcc-version to upgrade to on my RH7.1 Linux: > > Redhat announces a new version (mainly fixing bugs), and at the same > > time I see gcc-3.0 released (at gcc.gnu.org). Any suggestions? > > I could try installing gcc-3.0 and R-1.3.0 if noone else already have. > > gcc 3.0 works for me as an upgrade on RH6.2, and compiles R-1.3.0 on both > Linux and Solaris. > > I''d go for 3.0.Thanks Brian, I did, and all the installations and checks went smoothly. I didn''t run the test-suite accompanying gcc-3.0, though. G?ran -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 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 _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._