randKmap: Generate data for zoning or prepare real data
randKmap(DataObj, seed = NULL, nPoints = 450, nPointsK = 2000,
nSimuCond = 0, typeMod = "Exp", Vpsill = 5, Vrange = 0.2, Vmean = 8,
Vnugget = 0.2, boundary = list(x = c(0, 0, 1, 1, 0), y = c(0, 1, 1, 0,
0)), manualBoundary = FALSE, krig = 2, disp = 0, FULL = FALSE)
=NULL: simulated data with seed or = a data frame with real data
numeric, seed used to randomly generate data points
numeric, number of raw data points, default 450
numeric, number of kriged data points, default 2000
number of conditional simulations, reserved for future implementation.
type of variogram model (see vgm) "Gau", "Sph", "Exp"
numeric, default 5
numeric, default 0.2
numeric, default 8
numeric, default 0
list contains x and y
logical, default FALSE
numeric
numeric
logical, if TRUE the returned list is complete
a list
simulated or real raw data within the boundary
grid step
kriged data as a SpatialPointsDataFrame
kriged data in form of a grid-useful for image plots.
list of neighbours of each kriged data point
list of areas of Voronoi polygons in the tesselation of kriged data
random fields model
vgm model
(x,y) list of boundary points
ratio used to normalize x data
Generates a map structure from simulated data or real data. Kriged data are normalized so that x-coordinates are between 0 and 1. y-coordinates are normalized with the same ratio used for x-coordinates. Kriging is either done with inverse distance interpolation, or with a variogram model. It creates a structure that contains the data and parameters necessary to perform a zoning. The structure is identical wether the data are simulated or not.
# NOT RUN {
map = randKmap(NULL,nPointsK=200,Vmean=15,krig=2)
mean(map$krigGrid) # mean of generated kriged data
plotMap(map)
# }
Run the code above in your browser using DataLab