[R-sig-Geo] Variogram Plot
PUJAN RAJ REGMI
regmi_pujan at hotmail.com
Wed Mar 19 09:27:09 CET 2008
Dear all,
I think earlier i didn't clear myself. Now i am sending my data file and the code. My data set is attached with the mail where first and second column is X and Y coordinates and the column is the value of samples. I hope this time i am able to communicate.
Thanking you
Pujan
Code:
> mol.gr <- read.table(“D:/mol.dat”)
> mol.gr[,"x"] <-mol.gr[,1]
> mol.gr[,"y"] <-mol.gr[,2]
> mol.gr[,"Green Band Reflectance"] <-mol.gr[,3]
>map<-as.geodata(mol.gr) # make a geoR object to use various ready-made R unctions
> coal.var <- variog(map, max.dist =283.6) # omnidirectional semivariogram up to half max distance
> plot(coal.var)
_________________________________________________________________
Helping your favorite cause is as easy as instant messaging. You IM, we give.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20080319/0a4741e4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mol.rar
Type: application/octet-stream
Size: 29506 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20080319/0a4741e4/attachment.obj>
More information about the R-sig-Geo
mailing list