Re: [R-sig-Geo] Antw: [raster] formal way of addressing specific layer in RasterStack?

2012-12-06 Thread Etienne B. Racine
As Matteo mentionned, you can use extract, however using layer option instead of brackets might be safer and more conviennent if you want to extract multiple layers. v - extract(stack, sites, mean, na.rm = TRUE, layer=2, n = 1) Etienne 2012/12/5 Matteo Mattiuzzi matteo.mattiu...@boku.ac.at

Re: [R-sig-Geo] assigning names to iteratively generated rasters

2012-12-06 Thread Etienne B. Racine
Terry, Maybe a more orthodox way of doing this is to use replace your loop with a list (I have nothing against lists, it's just more convenient to manipulate a bunch of objects at once) : raster_list - lapply(1:8, function(i) { r - sort(sample(1:180, 2, replace = FALSE)) c -

Re: [R-sig-Geo] How to develop variogram models in R: setting minumum lag distance and modelling 3D anisotropy

2012-12-06 Thread Edzer Pebesma
On 12/06/2012 01:02 PM, Michele Di Marcantonio wrote: Dear All, I have some questions about the development of variogram models in R, in paerticular for setting a minimum lag distance and for modelling 3D anisotropy. The aim of our research is to analyze a set of spatial data Z(x;

[R-sig-Geo] multiple layers with administrative maps and artificial data

2012-12-06 Thread Georges BRESSON
Dear all,    I am a R beginner and I want to draw maps with 2 layers. The lower one is defined by an adminstrative map with borders (for instance the US states borders and the US county border) and the upper layer is a contour plot (or a level plot) with artificial data or data coming from

[R-sig-Geo] multiple layers with administrative maps and artificial data

2012-12-06 Thread Georges BRESSON
Dear all,    I am a R beginner and I want to draw maps with 2 layers. The lower one is defined by an adminstrative map with borders (for instance the US states borders and the US county border) and the upper layer is a contour plot (or a level plot) with artificial data or data coming from

[R-sig-Geo] presence-only data analysis

2012-12-06 Thread SH
Dear List: I have googled to try to understand analyzing presence-only data and predicting (?) species outbreaks. Although I was able to find a few papers, it is somewhat hard for me to figure out adapting my data. Or, I may be looking at a wrong place. Any suggestions/comments will be

Re: [R-sig-Geo] presence-only data analysis

2012-12-06 Thread Jess Chandler
SH, What you are looking at sounds like a hazard rate analysis (but with only location and a dummy variable). You can define a set of neighbor counties and presence for those counties (or set of counties) as another variable. You will then have Outbreak risk = a(presence) + b(location-maybe) +

[R-sig-Geo] Export a trellis object as a pdf, jpg or similar

2012-12-06 Thread Ester Polaina Lacambra
Hello everyone! I am drawing maps using spplot function, from sp package, and I am experiencing problems in visualizing my maps because apparently the volume of data is big. To avoid waiting I've thought in creating an object and then export it in another format such as pdf, jpg, png... I've

Re: [R-sig-Geo] Export a trellis object as a pdf, jpg or similar

2012-12-06 Thread Tim Appelhans
Hi Ester, for trellis objects you need the print command. Try: print(world_threat) within your pdf(), jpg() or png() call and it should work. HTH Tim On 6/12/2012 20:36, Ester Polaina Lacambra wrote: Hello everyone! I am drawing maps using spplot function, from sp package, and I am

Re: [R-sig-Geo] Export a trellis object as a pdf, jpg or similar

2012-12-06 Thread Rolf Turner
On 07/12/12 08:36, Ester Polaina Lacambra wrote: Hello everyone! I am drawing maps using spplot function, from sp package, and I am experiencing problems in visualizing my maps because apparently the volume of data is big. To avoid waiting I've thought in creating an object and then export it

[R-sig-Geo] installing rgdal on Debian

2012-12-06 Thread Hodgess, Erin
Hello! I'm trying to install rgdal on Debian. I keep getting the checking for gdal.h...no error. I have updated libgdal1.dev. I also put the /usr/include and /usr/include/gdal in my PATH. Any ideas as to what is wrong, please? I have a feeling that it is something very simple. Thanks, Erin

Re: [R-sig-Geo] assigning names to iteratively generated rasters

2012-12-06 Thread Beutel, Terry S
Thanks Etienne and Erin. Both good approaches that seem to work Regards Terry From: Etienne B. Racine [mailto:etienn...@gmail.com] Sent: Thursday, 6 December 2012 11:19 PM To: Hodgess, Erin Cc: Beutel, Terry S; r-sig-geo@r-project.org Subject: Re: [R-sig-Geo]

Re: [R-sig-Geo] installing rgdal on Debian

2012-12-06 Thread Raffaele Morelli
2012/12/6 Hodgess, Erin hodge...@uhd.edu Hello! I'm trying to install rgdal on Debian. I keep getting the checking for gdal.h...no error. I have updated libgdal1.dev. I also put the /usr/include and /usr/include/gdal in my PATH. Any ideas as to what is wrong, please? I have a