Re: [R-sig-Geo] Call and Eval function inside R

2011-07-13 Thread Luca Morandini
On 07/12/2011 10:29 PM, Narayani Barve wrote: I am writing a function where I want to supply a variable which contains a condition to be evaluated inside the function. For example, I have a hourval variable containing values like 0, 3, 6, 9, 18, 3, 6, 9, 18 0, 3, 18 ... I want to select the

Re: [R-sig-Geo] Call and Eval function inside R

2011-07-13 Thread Michael Sumner
Please don't cross post: http://stackoverflow.com/questions/6671029/call-and-eval-function-inside-r This is not a question for R-Sig-Geo at any rate, R-help is a better candidate and you should consult that mailing list's posting guide. Cheers, Mike. On Wed, Jul 13, 2011 at 6:29 AM, Narayani

Re: [R-sig-Geo] anisotropy modeling

2011-07-13 Thread Edzer Pebesma
On 07/12/2011 10:52 PM, Matevž Pavlič wrote: Hi all, i 'm am not entirely sure I understand anisotropy kriging in R. I have a data set in which is (at least i think so) anisotropy is clearly visible. So I made directional variograms So as i understand, the only thing that

Re: [R-sig-Geo] anisotropy modeling

2011-07-13 Thread Matevž Pavlič
Hi, thanks for the reply. Can you explain this a little bit more : it assumes the variogram to fit to is in the major (correlation) direction (or averaged over all directions). I don't know exactly ehat it means m -Original Message- From: r-sig-geo-boun...@r-project.org

[R-sig-Geo] adding text to spplot

2011-07-13 Thread Matevž Pavlič
hi all, I have a plot to which i would like to add text labels. And i cant find a way...here is the code : enaD2-idw(D2~1, loca=dva, newdata=grd) pts = list(sp.points, dva, pch = 20, cex=1.5, col = darkred spplot(enaD2, var1.pred,sp.layout=pts, main =

[R-sig-Geo] Spatial Correlogram

2011-07-13 Thread Sadz A
Dear list, I am trying to explore spatial patterns in some density data that I have (attached txt- RDdensityChange). I have successfully carried out Moran's I correlogram on the data using the library (pgirmess). I now wish to carry out an anisotropic correlogram, I have looked at the ncf and

Re: [R-sig-Geo] Spatial Correlogram

2011-07-13 Thread Matev? Pavlic
I dont know about correlogram, but you can create a variogram map using gstat package. A from there you can see spatial variation and direction of this variation... Matevz U. Pavlic On 13. jul. 2011, at 14:16, Sadz A sadz_a1...@yahoo.co.uk wrote: Dear list, I am trying to explore spatial

Re: [R-sig-Geo] adding text to spplot

2011-07-13 Thread Tom Gottfried
Have a look at ?sp.text Tom Am 13.07.2011 13:31, schrieb Matevž Pavlič: hi all, I have a plot to which i would like to add text labels. And i cant find a way...here is the code : enaD2-idw(D2~1, loca=dva, newdata=grd) pts = list(sp.points, dva, pch = 20, cex=1.5, col = darkred

Re: [R-sig-Geo] [R] adding text to spplot

2011-07-13 Thread Matevž Pavlič
Hi, still have troubles, if I have a code like this : spplot(enaD2, var1.pred,sp.layout=pts, main = globina 60 cm, sub=D2, col.regions=terrain.colors(64), contour=T) i get a nice plot with contours but without text. If ia use your code : spplot(enaD2, var1.pred,sp.layout=pts, main =

Re: [R-sig-Geo] [R] adding text to spplot

2011-07-13 Thread Oscar Perpiñan Lamigueiro
Hi, help(spplot): The ‘sp.layout’ argument is either a single layout item, or a list with a layout items. A layout item is a list with its first argument the name of the layout function to be called: ‘sp.points’ for SpatialPoints, ‘sp.polygons’ for SpatialPolygons object,

Re: [R-sig-Geo] plot3D raster coordinates

2011-07-13 Thread Etienne B. Racine
For posterity, (plot3D is in fact in the rasterVis package now) There's an adjustment factor additional to the zfac parameter. It is impossible to override it. The solution I've found is to comment these lines and run the function under another name (these lines are present 2 times). #