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

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] Using the Z value for 3-D polygons?

2009-03-04 Thread Jim Burke
Hi everyone, Please be patient with that recent email I sent out that suddenly turned into dropped linefeed semi garbage as I sent it. To view this properly, you can copy and paste to a Notepad or Unix edit session and insert the line feeds here and there so you can understand it better. I open

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

2009-03-04 Thread Jim Burke
Hi, I still need some help. Scant progress. Resources: I have Deepayan's "Lattice" book and Roger, Edzer, and Virgillio's "Applied Spatial Data Analysis" if you want to refer me to anything there. A. I use spplot with spplot.polygon parameters I receive the following error. . The argument se

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] 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

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

2009-03-02 Thread Edzer Pebesma
Jim, I'm sorry that this not answer your question; refering to this graphic gallery, I discovered that fig21 is no longer matches current states in sp, so I updated the complete set on sourceforge (and the sources in cvs, target spweb). For fig21, I also had to update the generating code, as panel

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

2009-03-02 Thread Jim Burke
Hi Everyone, QUESTION: How can I plot a spatial polygon (SpatialPolygonsDataFrame) as 3-d? Perhaps using "spplot.polygons" with its z value? GOAL: To have a series of polygons look like approximately like the last example in the PDF below. http://ocw.mit.edu/NR/rdonlyres/Urban-Studies-and-Pl