Re: [R-sig-Geo] plotting only polygons with points inside.

2008-01-22 Thread Roger Bivand
On Tue, 22 Jan 2008, Milton Cezar Ribeiro wrote: > Dear all, > > Following a code suggested by Roger Bivand (thanks Roger!), I made a > little modification to my own case. > > My questions are: (1) how can I plot only those polygons where I have > "cnt">0; subset the SpataialPolygonsDataFrame o

Re: [R-sig-Geo] spgrass6 build error on Mac OS X

2008-01-22 Thread Roger Bivand
On Tue, 22 Jan 2008, [EMAIL PROTECTED] wrote: > List, > > I am attempting to build spgrass6 on MacOS X 10.5.1 (Leopard) on a 2.33. > GHz Intel Core Duo MacBook Pro. Using the Mac OS X Cocoa GUI, I am > trying to install spgrass6 from source. I have gdal installed fine; when > I run gdal-config

[R-sig-Geo] spgrass6 build error on Mac OS X

2008-01-22 Thread Thomas . Adams
List, I am attempting to build spgrass6 on MacOS X 10.5.1 (Leopard) on a 2.33. GHz Intel Core Duo MacBook Pro. Using the Mac OS X Cocoa GUI, I am trying to install spgrass6 from source. I have gdal installed fine; when I run gdal-config at a term window prompt, I get: Macintosh-2:bin teaiii$ g

Re: [R-sig-Geo] save polygon as a shape file

2008-01-22 Thread stefan lhachimi
Thanks! That worked great. I am also able now to merge new data into the map with the merge command (I went to great length to show data in a map, always fearing that its not matched properly). I guess this is kind of trivial if you know your way around. But I never got a introduction to spatial m

[R-sig-Geo] plotting only polygons with points inside.

2008-01-22 Thread Milton Cezar Ribeiro
Dear all, Following a code suggested by Roger Bivand (thanks Roger!), I made a little modification to my own case. My questions are: (1) how can I plot only those polygons where I have "cnt">0; (2) how can I define classes of "cnt" (like 1-5; >5 to 20; >20-100) and choose a color for each lev

Re: [R-sig-Geo] AGAIN ON GGWR

2008-01-22 Thread Roger Bivand
On Tue, 22 Jan 2008, Luca Moiana wrote: > Hello Everyone, (Please use a better email client, one that only uses plain text, does not use HTML, and does not break lines in the wrong places or add empty lines). > > Following yesterday?s suggestions I wrote this code: > > ##Creation of Spatial Po

[R-sig-Geo] AGAIN ON GGWR

2008-01-22 Thread Luca Moiana
Hello Everyone, Following yesterday’s suggestions I wrote this code: ##Creation of Spatial Points Data Frame x <- as.matrix(subsample$E) y <- as.matrix (subsample$N) S <- SpatialPoints (cbind(x,y)) S <- SpatialPoints (list (x,y)) S <- SpatialPoints (data.frame (x,y)) data <- (subsa

Re: [R-sig-Geo] bitmap plots in loop

2008-01-22 Thread Roger Bivand
On Tue, 22 Jan 2008, Takatsugu Kobayashi wrote: > hi, > > I have read a couple of threads about png and jpg not being supported in > R CMD BATCH. So I decided to use bitmap() instead. I would like to > repeat printing jobs 1000 times. I only got empty png files. Doesn't > this loop open bitmap, pl