Re: [R-sig-Geo] R2 values from SSErr fit.variogram attribute

2011-03-15 Thread Edzer Pebesma
On 03/15/2011 04:18 AM, Sébastien Durand wrote: Hello Dr. Pebesma and all other 1989 readers... Believe me, I would have been much happier, if I could comprehend this tiny little detail that you refer to as : It looks quite OK; I suspect however that instead of using mean(s.v$gamma)

Re: [R-sig-Geo] rgdal to gif: HELP!!!

2011-03-15 Thread Alexandre Villers
Hi, What is exactly your goal? Displaying an image in a GIS or just saving an image to be used as an illustration ? If the second option is yours, then have a look at spplot() and then save the image with png(), jpeg(), tiff() or bmp() HTH Alex Dear all, I'm new to this forum. I'm

[R-sig-Geo] simple spplot problem (colorkey inside the plotting area)

2011-03-15 Thread Stowasser Rainer
I'm using spplot to color regions of Austria Everything works fine But I like to have the colorkey INSIDE the plotting area (in the Bavaria window :-) space just puts it outside (top, bottom, left, right) as the spplot is a lattice object it should be possible I've tried the examples from

[R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Murray Richardson
Hi R users, I would like to compute minimum area bounding rectangles for polygon features to extract short and long axes and azimuths of the long axes. Is this possible in R? I have not been able to find a way (yet). Thanks in advance for any help. Murray

Re: [R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Aman Verma
bbox in the sp package is what you are looking for. -Original Message- From: r-sig-geo-boun...@r-project.org [mailto:r-sig-geo-boun...@r-project.org] On Behalf Of Murray Richardson Sent: March 15, 2011 12:37 PM To: r-sig-geo@r-project.org Subject: [R-sig-Geo] minimum area bounding

Re: [R-sig-Geo] minimum area bounding rectangles - bbox() not the solution

2011-03-15 Thread Murray Richardson
Thanks for your advice Arman. Unfortunately bbox is just the minimum bounding rectangle (i.e. min and max of x and y), not the minimum area bounding rectangle. I need MABR to get the short and long axes info. I will wait for addition advice from others. Murray On 15/03/2011 12:53 PM, Aman

[R-sig-Geo] R2 values from SSErr fit.variogram attribute

2011-03-15 Thread Sébastien Durand
Thanks a lot, I understand what you meant now. I was like you said the general the fact that the computed means used to produce de SSErr value was obviously weighted and there to get a true R2 the same weighted means had to be used in the computation for the SSTot... Thanks a lot for your

Re: [R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Barry Rowlingson
On Tue, Mar 15, 2011 at 4:37 PM, Murray Richardson murray_richard...@carleton.ca wrote: Hi R users, I would like to compute minimum area bounding rectangles for polygon features to extract short and long axes and azimuths of the long axes.  Is this possible in R? I have not been able to find

Re: [R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Murray Richardson
Thanks Barry for the great tips. The MATLAB code will be a huge help - should be relatively straightforward to implement in R. cheers, Murray On 15/03/2011 7:20 PM, Barry Rowlingson wrote: On Tue, Mar 15, 2011 at 4:37 PM, Murray Richardson murray_richard...@carleton.ca wrote: Hi R users,

Re: [R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Barry Rowlingson
Shazam: minbb - function(pts){ ch = chull(pts) pts=pts[ch,] np = nrow(pts) pts=rbind(pts,pts[1,]) minbba = Inf ; bbth = NA; rotmin = NA for(i in 1:np){ th = pi-atan2(pts[i+1,2]-pts[i,2],pts[i+1,1]-pts[i,1]) prot = rotxy(pts,th) bba = diff(range(prot[,1])) *

Re: [R-sig-Geo] minimum area bounding rectangles

2011-03-15 Thread Murray Richardson
Wow, what can I say!? Thanks a million! I will try it out thoroughly tomorrow. Murray On 15/03/2011 7:47 PM, Barry Rowlingson wrote: Shazam: minbb- function(pts){ ch = chull(pts) pts=pts[ch,] np = nrow(pts) pts=rbind(pts,pts[1,]) minbba = Inf ; bbth = NA; rotmin = NA