Displaying 2 results from an estimated 2 matches for "autofitvariogram".
2009 Jun 10
2
plot two variograms on a same graph
Hi,
I would know how to plot two variograms on a same graph. I can plot one by one but I would draw both on the same one.
Is it possible? Do i need any special package?
Thanks!
Cordialement
Damien Landais
2008 Aug 20
1
pdf filenames in while loop
...# List of files to be used in the while loop
files <- read.table("files.txt")
f.mat <- as.matrix(files)
## start loop here with a as the control
a=1
while(a <= 60)
{
d <- read.csv(paste(f.mat[a]), header=TRUE, sep=",")
coordinates(d) = ~dbl_1+dbl_2
variogram = autofitVariogram(dbl_5~1,d, model = c("Sph"), fix.values=c(NA,NA,NA), verbose = FALSE)
print(variogram)
print(variogram$var_model$psill[1])
print(variogram$var_model$range[2])
p <- plot(variogram, main="Semi-variogram (Spherical Model)", sub=paste("Range: ",variogram$var_model$...