Re: [R-sig-Geo] writing shapefiles using write.pointShape

2008-03-13 Thread modern82376
I'm also having issues with getting the gw.cov function to work for fit points. Here's an example, using the same files... > pcavars <- names(surveypts[,4:8]) > pcavars [1] "pca1" "PCA2" "PCA3" "PCA4" "PCA5" > surv.cov <- gw.cov(data = surveypts, vars = pcavars, fit.points = fitpix, bw > = surve

[R-sig-Geo] writing shapefiles using write.pointShape

2008-03-13 Thread modern82376
I've been running gwr on some survey data and trying to write output back out to point shapefiles. At first, I thought that the shapefile wasn't being written, but after calling the file object I found it in a local settings/temp folder with a random shapefile name. I thought I had specified all

Re: [R-sig-Geo] spplot with two rasters

2008-03-13 Thread Roger Bivand
On Thu, 13 Mar 2008, hadley wickham wrote: >> > In the trellis panel functions, or in the direct plot/image/lines etc >> > functions, you plot in data coordinates. The main thing that the plot >> > and spplot methods in package sp control is the aspect ratio. How else >> > do data coordinates diff

Re: [R-sig-Geo] spplot with two rasters

2008-03-13 Thread hadley wickham
> > In the trellis panel functions, or in the direct plot/image/lines etc > > functions, you plot in data coordinates. The main thing that the plot > > and spplot methods in package sp control is the aspect ratio. How else > > do data coordinates differ from geographical coordinates when it com

Re: [R-sig-Geo] spplot with two rasters

2008-03-13 Thread Agustin Lobo
Edzer, Edzer Pebesma escribió: > Agus, I disagree with your claim that R plot functions are not ok for > real applications. Also, I use real applications for learning and > teaching -- they are not fundamentally different. Yes they are: we use the results of real applications as examples for te

Re: [R-sig-Geo] R-sig-Geo Digest, Vol 55, Issue 11

2008-03-13 Thread Nicholas Lewin-Koh
Hi Jeff, I think you can fit a spatial error model using a glmm in nlme or lme4. The negative binomial is not implemented, but a gamma model (if your counts are "well behaved") should be a good approximation. Another posibility is to use the VGAM package or mgcv and assume a smooth surface for your

Re: [R-sig-Geo] spplot with two rasters

2008-03-13 Thread Roger Bivand
On Thu, 13 Mar 2008, Edzer Pebesma wrote: Agus, I disagree with your claim that R plot functions are not ok for real applications. Also, I use real applications for learning and teaching -- they are not fundamentally different. In the trellis panel functions, or in the direct plot/image/lines e

Re: [R-sig-Geo] spplot with two rasters

2008-03-13 Thread Edzer Pebesma
Agus, I disagree with your claim that R plot functions are not ok for real applications. Also, I use real applications for learning and teaching -- they are not fundamentally different. In the trellis panel functions, or in the direct plot/image/lines etc functions, you plot in data coordinates