Re: [R-sig-Geo] help for select two columns in a data frame

2009-03-05 Thread Kamran Safi
Hi, sample_real <- sample[, c(2,4)] writeOGR(sample_real, ".", "sample_real", driver="ESRI Shapefile") should do the job. Kami gianni lavaredo wrote: sorry for the easy questions but I have this problem. I had read Help but I didn't find this question. Sorry for desturbing but I am a brand n

[R-sig-Geo] minimum distance between polygons' edges

2009-03-05 Thread Adrian Baddeley
arion TAFANI wrote: > we want to calculate the minimun distance between polygons' edges , do > you know any package or function which can help us ? we try to work > with vectors rather than raster but we lack some tools. we only found > how to calculate distances between centroids but nothin

[R-sig-Geo] SpatialPoints symbols cut off in PNG produced with GE_SpatialGrid() and kmlOverlay()

2009-03-05 Thread Christopher Moore
Dear R-sig-Geo List Members, How might I adjust a GE_SG object so that kmlOverlay() will produce a PNG that extends beyond the outermost points in a SpatialPoints object? When the outermost points are used to establish the extent of the grid, the symbols marking the location of the outermost p

[R-sig-Geo] help for select two columns in a data frame

2009-03-05 Thread gianni lavaredo
sorry for the easy questions but I have this problem. I had read Help but I didn't find this question. Sorry for desturbing but I am a brand new in R, sorry again # I have a shape file with 4 column (soil, ID, country, pH) sample <- readOGR(".", "sample") summary("sample") # I wish select only th

Re: [R-sig-Geo] extract values to points

2009-03-05 Thread Alexander Brenning
Hi Frauke, in the RSAGA package there is a function pick.from.ascii.grid which does exactly what you want. Even works with large grids as it can process them row by row. I use it for extracting point data from stacks of Landsat bands, terrain attributes etc. Here a case study (landslide suscepti

Re: [R-sig-Geo] mapping by zip codes

2009-03-05 Thread Paul Hiemstra
Hi, I gave the answer in my previous e-mail library(sp) data(meuse) # data.frame # The columns with the x and y coordinates are called "x" and "y" coordinates(meuse) = ~x+y # SpatialPointsDataFrame A good source of additional information is the sp-documentation or the book Applied Spatial Data

Re: [R-sig-Geo] mapping by zip codes

2009-03-05 Thread Torleif Markussen Lunde
Dear Alina First of all I suggest you search this mailing list, google, as well as reading a little at http://r-spatial.sourceforge.net/ Especially the Graph gallery is useful with lots of examples. If you want to advance, please look at http://www.asdar-book.org/ The answer to your question

Re: [R-sig-Geo] mapping by zip codes

2009-03-05 Thread Alina Sheyman
My data consists of lat, long, and the number of customers associated with each How do I go about converting my data.frame to a spatial object? On Tue, Mar 3, 2009 at 3:40 PM, Paul Hiemstra wrote: > Hi, > > You have to provide some more info in order for us to answer you question. > How does 'yo

Re: [R-sig-Geo] Using the Z value for 3-D polygons?

2009-03-05 Thread Torleif Markussen Lunde
Ok. Again I will not answer the question exactly the way you would like to have things done. Anyway this is an approach to use lattice. 1. Use spsample to create a grid 2. Make a data.frame and give the corresponding data values from the shp-file to the coordinates in the data frame 3. plot with

[R-sig-Geo] extract values to points

2009-03-05 Thread Frauke Barthold
Dear list, I have a soilmap as an Ascii grid and a dataframe with x and y coordinates (these are sampling points). I would now like to extract values from the soilmap to the dataframe based on location, the x and y values. Is there any way to do this in R? Cheers, Frauke _

Re: [R-sig-Geo] imaging geoRglm binomial krig

2009-03-05 Thread Ken Nussear
Hi Noicola, Thanks for the reply Mine were originally made in ArcMap by a colleague of mine, then imported into Grass, which I use. The point locations (x,y) and the covariates are all in a vector attribute table for the points and all values are pulled direclty from a sqlite backend via RS

Re: [R-sig-Geo] imaging geoRglm binomial krig

2009-03-05 Thread Nicola Batchelor
Hi Ken, I've also been using geoRglm for similar analyses, and found the prediction to be a bit fickle when it comes to the prediction grids! I was having similar problems to yours and the only thing that I could do to make it work was to alter the way I made my prediction grids. How are you c

Re: [R-sig-Geo] Using the Z value for 3-D polygons?

2009-03-05 Thread Edzer Pebesma
Thanks for the detailed comments. Before you want me starting to experiment with your data, I want to ask you what makes you think that spplot will solve your problem, which I assume is plotting 3D polygons (although I'm not sure)? Some more comments inline. -- Edzer Jim Burke wrote: > Hi, I sti

Re: [R-sig-Geo] point and click visualization of data

2009-03-05 Thread Virgilio Gomez Rubio
Hi, I am not sure about what you need, bu you may want to try Mondrian for this: http://rosuda.org/mondrian/ If you have your data in R (as a SpatialPolygonsDataFrame), you can use sp2Mondrian to export to a file that Mondrian can read. This will let you visualize multivariate data very easily.