I may be doing something wrong here, but I find that if I simplify my data frame by removing irrelevant columns the autoKrige function in the automap library gives different results. I have reproduced this problem with the meuse data in the automap library.
library(automap)
data(meuse)
colnames(meuse)
[1] "x" "y" "cadmium" "copper" "lead" "zinc" "elev"
[8] "dist" "om" "ffreq" "soil" "lime" "landuse" "dist.m"
coordinates(meuse) =~ x+y
data(meuse.grid)
gridded(meuse.grid) =~ x+y
kriging_result_01 = autoKrige(zinc~1, meuse)
plot(kriging_result_01)
meuse <- NULL
data(meuse)
meuse <- meuse[, c(1,2,6)]
coordinates(meuse) =~ x+y
data(meuse.grid)
gridded(meuse.grid) =~ x+y
kriging_result_02 = autoKrige(zinc~1, meuse)
plot(kriging_result_02)
identical(kriging_result_01, kriging_result_02)
[1] FALSE
The plots are also different in their detail.
Is this the expected behaviour?
Thanks, Bill