Re: [R-sig-Geo] contour lines on a plot

2009-01-29 Thread Virgilio Gomez Rubio
Maxime, > It doesn't help, it does! Many thanks! > Do you know if there is a way to label contour using contourLines(), or, > alternatively, to specify the type of line? Unfortunately, > drawlabels=TRUE or lty=n don't work. For that, you can check the example here: http://www.asdar-book.org/c

Re: [R-sig-Geo] contour lines on a plot

2009-01-26 Thread Maxime Pauwels
Dear Virgilio, It doesn't help, it does! Many thanks! Do you know if there is a way to label contour using contourLines(), or, alternatively, to specify the type of line? Unfortunately, drawlabels=TRUE or lty=n don't work. best regards, Maxime Virgilio Gomez Rubio a écrit : Dear Maxime,

Re: [R-sig-Geo] contour lines on a plot

2009-01-23 Thread Virgilio Gomez Rubio
Dear Maxime, > Congratulations for the way you succeed in putting contourline at the > good place, although I'm not sure I understood the solution. > I'm almost able to draw myplot... but not yet. > The problem is that I can not use contourlines on a dataframe. I attache > my datafile to help yo

Re: [R-sig-Geo] contour lines on a plot

2009-01-20 Thread Maxime Pauwels
Dear Virgilio and José, Congratulations for the way you succeed in putting contourline at the good place, although I'm not sure I understood the solution. I'm almost able to draw myplot... but not yet. The problem is that I can not use contourlines on a dataframe. I attache my datafile to help

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread Virgilio Gomez Rubio
Hi, El lun, 19-01-2009 a las 22:19 +0100, José Manuel Blanco Moreno escribió: > Just a doubt... there seems that the contours are not shifted but > "mirrored" (flipped) along an horizontal line? Very well spotted!! The right code should be as follows (the change is in the definition of 'spvolcan

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread José Manuel Blanco Moreno
Just a doubt... there seems that the contours are not shifted but "mirrored" (flipped) along an horizontal line? Virgilio Gomez Rubio escribió: Hi, El lun, 19-01-2009 a las 18:37 +0100, Maxime Pauwels escribió: Dear Virgilio, I think you're right. Unfortunately, I am not familiar enough

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread Virgilio Gomez Rubio
Hi, El lun, 19-01-2009 a las 18:37 +0100, Maxime Pauwels escribió: > Dear Virgilio, > > I think you're right. Unfortunately, I am not familiar enough with the > analysis of spatial data to avoid such conflict. > Do you know wath function I should use to generate contour before > conversion. Th

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread Maxime Pauwels
Dear Virgilio, I think you're right. Unfortunately, I am not familiar enough with the analysis of spatial data to avoid such conflict. Do you know wath function I should use to generate contour before conversion. I tried contour but it didn't work: contour<-ContourLines2SLDF(contour(p, nlevel

Re: [R-sig-Geo] contour lines on a plot

2009-01-19 Thread Virgilio Gomez Rubio
Dear Maxime, I have not been able to reproduce your example because I lack your data file (file.txt). However, I believe that the problem is at > spplot(p,zcol="K1.pred",col.regions=gray(0:100/100), cuts=40, > sp.layout=list(pts), pretty=T) > contour(p, add=T, nlevels=2) You are combining latti

[R-sig-Geo] contour lines on a plot

2009-01-19 Thread Maxime Pauwels
Dear users, First of all, I'd like to wish you a happy new year, with many nice results from R. I have a graphical problem when plotting kriging results. I first want to see results on a plot and, secondary, I'd like to add contour lines to the plot. The problem is that lines are at a wrong pl