13.07.2015 Views

The gstat Package - NexTag Supports Open Source Initiatives

The gstat Package - NexTag Supports Open Source Initiatives

The gstat Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

krige 17jura.pred$Rock = factor(prediction.dat$Rock, labels=levels(juragrid.dat$Rock))jura.val$Landuse = factor(validation.dat$Landuse, labels=levels(juragrid.dat$Landuse))jura.val$Rock = factor(validation.dat$Rock, labels=levels(juragrid.dat$Rock))coordinates(jura.pred) = ~Xloc+Yloccoordinates(jura.val) = ~Xloc+Yloccoordinates(jura.grid) = ~Xloc+Ylocgridded(jura.grid) = TRUEkrigeSimple, Ordinary or Universal, global or local, Point or Block Kriging,or simulation.DescriptionUsageFunction for simple, ordinary or universal kriging (sometimes called external drift kriging), krigingin a local neighbourhood, point kriging or kriging of block mean values (rectangular or irregularblocks), and conditional (Gaussian or indicator) simulation equivalents for all kriging varieties, andfunction for inverse distance weighted interpolation. For multivariable prediction, see <strong>gstat</strong> andpredict.<strong>gstat</strong>krige(formula, locations, ...)krige.locations(formula, locations, data, newdata, model, ..., beta, nmax= Inf, nmin = 0, maxdist = Inf, block, nsim = 0, indicators = FALSE,na.action = na.pass, debug.level = 1)krige.spatial(formula, locations, newdata, model, ..., beta, nmax= Inf, nmin = 0, maxdist = Inf, block, nsim = 0, indicators = FALSE,na.action = na.pass, debug.level = 1)idw(formula, locations, ...)idw.locations(formula, locations, data, newdata, nmax = Inf,nmin = 0, maxdist = Inf, block, na.action = na.pass, idp = 2.0)idw.spatial(formula, locations, newdata, nmax = Inf, nmin = 0,maxdist = Inf, block = numeric(0), na.action = na.pass, idp = 2.0)Argumentsformulalocationsdataformula that defines the dependent variable as a linear model of independentvariables; suppose the dependent variable has name z, for ordinary and simplekriging use the formula z~1; for simple kriging also define beta (see below);for universal kriging, suppose z is linearly dependent on x and y, use the formulaz~x+yformula with only independent variables that define the spatial data locations(coordinates), e.g. ~x+y, or object of class Spatialdata frame: should contain the dependent variable, independent variables, andcoordinates, should be missing if locations contains data.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!