Re: [R-sig-Geo] Trouble installing rgdal

2010-08-15 Thread Gabor Grothendieck
On Sun, Aug 15, 2010 at 8:36 PM, Gabor Grothendieck wrote: > I am having trouble install rgdal. I am using > Red Hat Enterprise Linux Server release 5.5 (Tikanga) > and having the problem shown below when I try to install > rgdal. > I found a different set of configure switches t

[R-sig-Geo] Trouble installing rgdal

2010-08-15 Thread Gabor Grothendieck
I am having trouble install rgdal. I am using Red Hat Enterprise Linux Server release 5.5 (Tikanga) and having the problem shown below when I try to install rgdal. I have previously installed rgdal including building gdal from source so I am not new to this but have not previouly installed it on t

Re: [R-sig-Geo] dates

2010-07-24 Thread Gabor Grothendieck
On Sat, Jul 24, 2010 at 7:21 PM, Peter Larson wrote: > Hi, > > This is completely unrelated to spatial anything (well, ostensibly) but I am > trying the following to convert a string to a date and am getting nothing" > > dates <- c("27-Feb-92") > as.Date(dates,format= '%d-%b-%y') > [1] NA > > Any

Re: [R-sig-Geo] R Scoping Rules

2010-04-18 Thread Gabor Grothendieck
oo <- function() { height <- 3; a() } > foo() # height does not exist > > -Original Message- > From: Gabor Grothendieck [mailto:ggrothendi...@gmail.com] > Sent: Sunday, April 18, 2010 8:00 PM > To: e...@cs.uic.edu > Cc: r-sig-geo@stat.math.ethz.ch > Subject: Re:

Re: [R-sig-Geo] R Scoping Rules

2010-04-18 Thread Gabor Grothendieck
R uses lexical scope. That means that when a variable is not found in a function it next looks where the function was _defined_ and not where the function was called from. Since simple is defined in the global environment it looks there for height if can`t find it within simple. The parent envir

Re: [R-sig-Geo] Preparing R plots for Publication

2010-02-21 Thread Gabor Grothendieck
You did not mention your platform but there is info for R on Windows here: http://www.statmethods.net/advgraphs/parameters.html ?windows ?windowsFont file.show(file.path(R.home(), "etc", "Rdevga")) On Sun, Feb 21, 2010 at 2:35 PM, Francis Smart wrote: > Dear R-Users, > > I am attempting to submi

Re: [R-sig-Geo] need to create US map with colors by state

2009-11-05 Thread Gabor Grothendieck
Try this: library(help = maps) # show polygon names in order map("state", fill = TRUE, plot = FALSE, names = TRUE) # make first polygon have color 1, second 2, etc. map("state", fill = TRUE, col = 1:63) On Thu, Nov 5, 2009 at 12:14 PM, Mark Kimpel wrote: > I need to do something quite simple,

Re: [R-sig-Geo] Problem installing rgdal on 64 bit fedora

2009-09-23 Thread Gabor Grothendieck
version of gdal I had installed from source so I copied the gdal-config that I had built over the old one (after I had built gdal) and then after the copy rebuilt gdal again to be sure. On Wed, Sep 23, 2009 at 9:55 PM, Gabor Grothendieck wrote: > I was not having much luck with yum and tr

Re: [R-sig-Geo] Problem installing rgdal on 64 bit fedora

2009-09-23 Thread Gabor Grothendieck
and the file /root/gdal-1.6.2/libgdal.la is present. Has anyone seen this when trying to install gdal? On Wed, Sep 23, 2009 at 1:07 PM, Gabor Grothendieck wrote: > Actually I tried building proj-4.6.1 from source after my attempt with > yum failed to get rgdal going but that wasn't su

Re: [R-sig-Geo] Problem installing rgdal on 64 bit fedora

2009-09-23 Thread Gabor Grothendieck
tform, so at user request (for OSX among > others), dropped the bundled files. I can see: > > http://fr2.rpmfind.net//linux/RPM/fedora/11/x86_64/proj-epsg-4.6.1-2.fc11.x86_64.html > > but since I build from source, can't vouch for it. > > Roger > >> >> Lau

[R-sig-Geo] Problem installing rgdal on 64 bit fedora

2009-09-23 Thread Gabor Grothendieck
I am getting this message when I try to install rgdal in R: Error: proj/epsg not found Either install missing proj support files, for example the proj-nad and proj-epsg RPMs on systems using RPMs, or if installed but not autodetected, set PROJ_LIB to the correct path. ERROR: configuration failed f

Re: [R-sig-Geo] overplotting on png map tile in R

2009-03-09 Thread Gabor Grothendieck
The rgdal package can read png images. See: http://finzi.psych.upenn.edu/R/Rhelp02a/archive/94605.html On Sun, Mar 8, 2009 at 12:32 PM, Markus Loecher wrote: > Dear R geo wizards, > while I am very happy with the kmloverlay() function from the maptools > package to create overlays from R in Goog

Re: [R-sig-Geo] Variables inside a for

2008-12-01 Thread Gabor Grothendieck
Use this: lm(database[c(variable[i], "INCOME")]) On Mon, Dec 1, 2008 at 7:45 PM, Raphael Saldanha <[EMAIL PROTECTED]> wrote: > Hi! > > I had a database with some variables in sequence. Let me say: TX01, TX02, > TX03 and TX04. > > But I need to run some regressions changing the variables... so: >

Re: [R-sig-Geo] Convert LL to UTM

2008-01-14 Thread Gabor Grothendieck
Check out: https://stat.ethz.ch/pipermail/r-sig-geo/2007-March/001804.html On Jan 14, 2008 6:29 PM, Mauro Sznelwar <[EMAIL PROTECTED]> wrote: > How can I do to transform geographic coordinates in UTM, I want to transform > a column of latitude and longitude in decimal geographic coordenates to

Re: [R-sig-Geo] How to generate the coordinates of a circle if i know its center's coordinates and radius?

2007-11-21 Thread Gabor Grothendieck
See draw.circle and maybe draw.arc in the plotrix package. On Nov 21, 2007 8:17 AM, zhijie zhang <[EMAIL PROTECTED]> wrote: > Hi all, > How to generate the coordinates of a circle if i know its center's > coordinates and radius? > I want to overlay the circle with another figure, but i only kno

Re: [R-sig-Geo] Converting a dataframe to a character vector

2007-07-16 Thread Gabor Grothendieck
+ " > > I have simplified the dataset somewhat. The real dataset has over 100 > entries and it would be rather tedious to have to enter each one separately. > > Thanks, > Rob Taylor > > Gabor Grothendieck wrote: > > Try this: > > > >> Lines <- &qu

Re: [R-sig-Geo] Converting a dataframe to a character vector

2007-07-16 Thread Gabor Grothendieck
Try this: > Lines <- "Repens + Laurifolia + Repens + Laurifolia + Laurifolia + " > # replace next line with v <- scan("myfile.dat", what = "") > v <- scan(textConnection(Lines), what = "") Read 5 items > is.vector(v) [1] TRUE > class(v) [1] "character" > str(v) chr [1:5] "Repens" "Laurifo

Re: [R-sig-Geo] geocoding street addresses

2007-05-06 Thread Gabor Grothendieck
On 5/6/07, Markus Loecher <[EMAIL PROTECTED]> wrote: > is there an R package which would let me geocode street addresses > into lat/lon pairs ? I have searched quite a bit but it seems as if > the ESRI software is my only way to go ? Non-commercial terms of use or commercial with payment but if t

Re: [R-sig-Geo] no plots into viewport

2007-05-02 Thread Gabor Grothendieck
Missed this but just noticed it when Roger replied. Try: print(plot, newpage = FALSE) On 02 May 2007 11:45:07 +0100, Michal Gallay <[EMAIL PROTECTED]> wrote: > Dear R Users, > > could anyone help me and explain why no plot with 'plot'function is plotted > in the viewport, but as a single plot on

Re: [R-sig-Geo] Bug in surf.ls (spatial package)?

2007-04-10 Thread Gabor Grothendieck
They are using different coefficient parameterizations but the models are otherwise the same. For example, they give the same fitted values: > all.equal(fitted(surface.surf), as.vector(fitted(surface.lm))) [1] TRUE On 4/10/07, ONKELINX, Thierry <[EMAIL PROTECTED]> wrote: > Dear listers, > > Whe

Re: [R-sig-Geo] agenda for R's Geo capabilities?

2007-03-16 Thread Gabor Grothendieck
In my opinion the first item on the agenda should be to get good documentation in place including many examples. On 3/16/07, Edzer J. Pebesma <[EMAIL PROTECTED]> wrote: > Although I'm interested many of the issues below, and also feel the > attraction of the develop-it-ourself, my personal agenda

Re: [R-sig-Geo] Principal Directions with surf.ls

2007-03-14 Thread Gabor Grothendieck
Thanks. In my case the region of interest is no larger than a city block so I fall into your simpler case. On 3/14/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Wed, 14 Mar 2007, Gabor Grothendieck wrote: > > > Thanks. I was hoping that either there were an existing &

Re: [R-sig-Geo] Principal Directions with surf.ls

2007-03-14 Thread Gabor Grothendieck
ust a regression I guess I can ditch surf.ls and use lm in which case I can get the coefficients explicitly and figure it out from there. On 3/14/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Wed, 14 Mar 2007, Gabor Grothendieck wrote: > > > Suppose we plot a quadratic surface as in:

[R-sig-Geo] Principal Directions with surf.ls

2007-03-13 Thread Gabor Grothendieck
Suppose we plot a quadratic surface as in: library(spatial) example(surf.ls) How can we plot lines on the graph to show the principal directions/axes of the elliptical contours and how do we get them? Thanks. ___ R-sig-Geo mailing list R-sig-Geo@stat.

Re: [R-sig-Geo] Drawing circular contours

2007-03-07 Thread Gabor Grothendieck
g(zinc)~1,meuse[sample(1:155,10),], meuse.grid, vgm(1, > "Lin", 0), nmax=1) > # contour kriging variance: > contour(out[2], asp=1) > > Note that the contour method does not set the aspect ratio by default -- > an omission. > -- > Edzer > > > Gabor Grothendieck wrot

[R-sig-Geo] Drawing circular contours

2007-03-06 Thread Gabor Grothendieck
I am currently doing the following to draw circles at the indicated distances from the center. The center is given by utm coordinates: utm.e, utm.n . It does work: class(im2) # "SpatialGridDataFrame" image(im2, "ind", col = col$ct) library(plotrix) dd <- c(25, 50, 100, 150) for(i in 1:4) draw.ci

[R-sig-Geo] Which organizations use R for geographic processing?

2007-03-06 Thread Gabor Grothendieck
Not sure if this will become an issue but in case I need it to justify my toolset does anyone have a list of recognizable organizations that use R for geographic processing? Thanks. ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.eth

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
Thanks for the clarification. On 3/6/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Tue, 6 Mar 2007, Gabor Grothendieck wrote: > > > Great! Your LL2UTM function was exactly what I wanted. > > > > My data sets are each about a city block in size and I mostly work

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
gt; #--- set the zone attribute > attr(nepacLL, "zone") <- 9 > #--- convert to UTM > nepacUTM <- convUL(nepacLL) > > - Tom > > Tom Short > EPRI > > > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Be

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
ikely to be well within the accuracy I need since, in truth, I don't need high precision. Thanks. On 3/6/07, Roger Bivand <[EMAIL PROTECTED]> wrote: > On Tue, 6 Mar 2007, Gabor Grothendieck wrote: > > > Thanks. I looked at spTransform prior to posting but don't und

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
On 3/6/07, antonio rodriguez <[EMAIL PROTECTED]> wrote: > Gabor Grothendieck wrote: > >> I am currently using this web page to convert LL to UTM (and UTM to LL). > >> > >>http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html > >> &g

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
ou > can also use R within a GRASS session interactively or > non-interactively, embedded within a script. > > I hope this is helpful to you. > > Regards, > Tom > > > Gabor Grothendieck wrote: > > I am currently using this web page to convert LL to UTM (and UTM to

Re: [R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
function (or rather method) > spTransform. It takes any of the spatial classes provided by package sp, > and afaik any of the known projection systems, including UTM and > ellipsoids (LL reference "model"). > -- > Edzer > > Gabor Grothendieck wrote: > > I am cu

[R-sig-Geo] LL to UTM

2007-03-06 Thread Gabor Grothendieck
I am currently using this web page to convert LL to UTM (and UTM to LL). http://home.hiwaay.net/~taylorc/toolbox/geography/geoutm.html All my points are in zone 18. How would I accomplish the same thing using R? Thanks. ___ R-sig-Geo mailing list