Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-05 Thread Jon Skoien
Anand, I could not open your .grd file in R, I think the .gri file is missing. However, looking at it in a text editor, and comparing with your R-script, it seems something went wrong with your projections. Your .csv-file has LatLong coordinates, but you are setting the projection to

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-05 Thread Jon Skoien
Hi, You have attached some data, but we still dont know exactly what you do with the data (do you use the logarithm, how many bins, did you project the data set...?). However, having had a quick look using the LatLong coordinates (not really recommended), I can see that the variogram from

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-05 Thread Anand Sookun
Dear Jon and Roman Thanks for the reply. Im attaching the code. You may be right that the variogram may be problematic but it fitted well visually. I think also that the prediction grid was not well created. I wiould be grateful to have to hints.code how to create a useful grid and also for

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-05 Thread Roman Luštrik
Unfortunately we don't have access to all the variables you use in `krige` call. Consider making a reproducible example. Cheers, Roman On Mon, Aug 3, 2015 at 5:30 PM, Anand Sookun asoo...@gmail.com wrote: Hi Thank you Roman for your kind response. The data is as attached which is part of

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-05 Thread Anand Sookun
Dear Jon I have to thank you so much for solving this issue. I did't notice that there was a projection and grid problem. I hope I would be able to move forward with my analysis with R and perhaps still need your kind and much appreciated help. Cheers Anand On Wed, Aug 5, 2015 at 12:08 PM,

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-04 Thread Anand Sookun
Hi Thank you Roman for your kind response. The data is as attached which is part of the whole dataset. My other problem is that im not able to create an appropriate prediction grid with some data included. The codes which failed to show colour ramps are map - krige(logcarbseq ~ 1, locations =

Re: [R-sig-Geo] help: krigged map do not show colours

2015-08-04 Thread Anand Sookun
DearJon Thnaks. I will try that soon. Cheers Anand On Tue, Aug 4, 2015 at 4:55 PM, Jon Skoien jon.sko...@jrc.ec.europa.eu wrote: Anand, I could not open your .grd file in R, I think the .gri file is missing. However, looking at it in a text editor, and comparing with your R-script, it

[R-sig-Geo] help: krigged map do not show colours

2015-08-03 Thread Anand Sookun
Hi I have kriged my data but the map shows uniform colours - no gradual contour colour plot on map code: print(spplot(k40, var1.pred, asp=1, col.regions=bpy.colors(64),main=OK prediction, log-ppm Zn)) thnaks for any help Anand Sookun -- ---