Automatically fitting a variogram to the data on which it is applied. The automatic fitting is done through fit.variogram. In fit.variogram the user had to supply an initial estimate for the sill, range etc. autofitVariogram provides this estimate based on the data and then calls fit.variogram.
For details, see autofitVariogram
1 2 3 4 
formula 
formula that defines the dependent variable as a linear model of independent variables; suppose the dependent variable has name 'z', for ordinary and simple kriging 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 formula 'z~x+y'. 
input_data 
An object of SpatialPointsDataFrameclass. 
model 
The list of variogrammodels that will be tested. 
kappa 
Smoothing parameter of the Matern model. Provide a list if you want to check more than one value. 
fix.values 
Can be used to fix a variogram parameter to a certain value. It consists of a list with a length of three. The items describe the fixed value for the nugget, range and sill respectively. They need to be given in that order. Setting the value to NA means that the value is not fixed. 
verbose 
logical, if TRUE the function will give extra feedback on the fitting process 
GLS.model 
If a variogram model is passed on through this parameter a Generalized Least Squares sample variogram is calculated. 
start_vals 
Can be used to give the starting values for the variogram fitting. The items describe the fixed value for the nugget, range and sill respectively. They need to be given in that order. Setting the value to NA means that the value will be automatically chosen. 
cutoff 
Parameter included in variogram (maximum distance of variogram). Default to diagonal * 0.35. 
miscFitOptions 
A list with named arguments that provide additional control over the fitting process.
For example:

dist.mat 
Square matrix of distances between points of the dataset ## Not implemented yet 
... 
parameters that are passed on to variogram when calculating the sample variogram. 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.