[R-sig-Geo] Area Under the ROC curve (AUC)

2009-03-03 Thread yacine kouba
Dear all, we want to simulate de area under the ROC curve “AUC” for Bayesian Model Averaging (BMA), do you know any package or functions which can help us? Thanks Yacine _ [[elided Hotmail spam]] [[alternative HTML vers

Re: [R-sig-Geo] RPyGeo: merge geoprocessing problems with "field_mappings" option

2009-03-03 Thread Alexander Brenning
Dear Gianni, I haven't used the Merge_management tool in ArcGIS, but after having a look at ESRI's documentation... http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=Merge_(Data_Management) ...it seems to me that field_mappings is not just a character string but an object of the

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

2009-03-03 Thread Torleif Markussen Lunde
Still not as good as it should be, but at least a try. Some of the code could be a lot more efficient, but I guess you could use this as a template: require(maptools) nc <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1], proj4string=CRS("+proj=longlat +datum=NAD27")) for (

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

2009-03-03 Thread Jim Burke
Hi Tom and everyone, First, Tom an excellent little google website you pointed out! Then below is what I have used to merge and have fun with data frames. My apologies in advance, Netscape Communicator will likely forget some line feeds. ## # . read in your basic st

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

2009-03-03 Thread Hengl, T.
Dear Alina, If you load two datasets to R and you want to merge them via some key (e.g. zip code), you have to consider using the "merge" method e.g.: > spdata <- merge(x=data.frame(ZIP=zipshape$ZIP, X=zipshape$X, Y=zipshape$Y), > y=data.frame(ZIP=customers$ZIP, V=customers$V), by=ZIP, all.

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

2009-03-03 Thread Paul Hiemstra
Hi, You have to provide some more info in order for us to answer you question. How does 'your data' look like? A data.frame with x and y coordinates and more info? If this is correct, you need to convert the xy data.frame to a spatial object: library(sp) data(meuse) # data.frame # The column

Re: [R-sig-Geo] SpatialLines to SpatialPolygons convertion

2009-03-03 Thread Hans-Jörg Bibiko
Thanks a lot for the hints. I'll try them. Kind regards --Hans ** Hans-Joerg Bibiko Max Planck Institute for Evolutionary Anthropology Department of Linguistics Deutscher Platz 6 phone: +49 (0) 341 3550 341 D-04103 Leipzig fax

Re: [R-sig-Geo] SpatialLines to SpatialPolygons convertion

2009-03-03 Thread Kamran Safi
Hi all, I was just wasting the last two days fiddling around this problem. I ended up using maptools and PBSmapping with SpatialLines2PolySet() and then PolySet2SpatialPolygons() to work around this problem. I don't know why this has to be so complicated. But I was also struggling with differ

Re: [R-sig-Geo] minimun distance between polygons' edges

2009-03-03 Thread Mihai Valcu
ons' 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 nothing between edges. thanks __ Information from ESET Mail Security, version o

[R-sig-Geo] mapping by zip codes

2009-03-03 Thread Alina Sheyman
I'm very new to creating maps using shapefiles, so this question might be pretty basic. I'm trying to create a map of the US, divided up by zip codes, where i then map number of customers by zip code. I located shapefiles for US with zip codes (although at this point only for individual states, an

Re: [R-sig-Geo] SpatialLines to SpatialPolygons convertion

2009-03-03 Thread Henk Sierdsema
Hi Hans, Please have a look at paragraph 2.6 (page 41) on spatial polygons in the ASDAR-book. Here you will find an example of converting a shoreline into polygons. Henk Henk Sierdsema SOVON Vogelonderzoek Nederland / SOVON Dutch Centre for Field Ornithology Rijksstraatweg 178 6573 DG Bee

Re: [R-sig-Geo] SpatialLines to SpatialPolygons convertion

2009-03-03 Thread Torleif Markussen Lunde
Hi A workaround could be to use Rgshhs or the modified version suggested in https://stat.ethz.ch/pipermail/r-sig-geo/2009-February/005157.html Best wishes Torleif Fra: r-sig-geo-boun...@stat.math.ethz.ch på vegne av Hans-Jörg Bibiko Sendt: ti 03.03.2009 17:

[R-sig-Geo] SpatialLines to SpatialPolygons convertion

2009-03-03 Thread Hans-Jörg Bibiko
Hi, I have a short question. Is there any workaround available which tries to convert a list of SpatialLines to a list of SpatialPolygons objects? In my case I have a list of Lines objects coming from a gshhs (shorelines) file. The list represents 8 polygons of a given xlim/ ylim. Now I'd

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

2009-03-03 Thread Torleif Markussen Lunde
Not exactly what you are looking for, but at least an attempt. Guess you could also look at the rgl package (never worked for me on Fedora) or misc3d. Modifying the functions could give you what you want. require(maptools) nc <- readShapePoly(system.file("shapes/sids.shp", package="maptools")[1

[R-sig-Geo] RPyGeo: merge geoprocessing problems with "field_mappings" option

2009-03-03 Thread gianni lavaredo
Hi All I am testing RPyGeo (old version) developed to Prof. Alexander Brenning. I wish to merge three points shapefile each with this database: ID, X, Y, V. The Scripting syntax in Python is "Merge_management (inputs, output, field_mappings)", where with "field_mappings" (Optional) I can chose t

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

2009-03-03 Thread Marion TAFANI
edges. thanks __ Information from ESET Mail Security, version of virus signature database 3904 (20090303) __ The message was checked by ESET Mail Security. http://www.eset.com ___ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch

Re: [R-sig-Geo] 'Cleaning' unioned polygons using sp and maptools...

2009-03-03 Thread Barry Rowlingson
2009/3/3 Peter S. Hayes : > Hi List, > > Here's a question... I have a watershed polygon that has been 'tiled' into > separate and non-overlapping cells according to a combination of attributes. > The original watershed boundary seems not to be available in undivided form > and I was interested in

[R-sig-Geo] 'Cleaning' unioned polygons using sp and maptools...

2009-03-03 Thread Peter S. Hayes
Hi List, Here's a question... I have a watershed polygon that has been 'tiled' into separate and non-overlapping cells according to a combination of attributes. The original watershed boundary seems not to be available in undivided form and I was interested in retrieving it from the divided s