draw.color {RGeostats} | R Documentation |
Color representation
draw.color(x, y, z, elev, zmin = NA, zmax = NA, col = NA, bg=NA, pch = 21, pos.legend = 0, ...)
x |
Array giving the coordinates of the samples along X |
y |
Array giving the coordinates of the samples along Y |
z |
Array giving the target variable |
elev |
Array giving the values of the samples (only used for RGL representation) |
zmin |
Minimum acceptable value for the target variable. |
zmax |
Maximum acceptable value for the target variable. |
col |
Color of the symbol (foreground) for the samples whose target variable lies within the bounds. |
bg |
Color of the symbol background for the samples whose target variable lies within the bounds. |
pch |
Symbol type for representing for samples |
pos.legend |
Position of the optional legend. See |
... |
Additional arguments passed to function: |
# We define a data base and perform a Kriging (exact interpolator) on a regular grid. # Then we represent the interpolated value together with the conditioning dat, using the same color set.seed(1223421) data = db.create(x1=floor(100.*runif(100)), x2=floor(100.*runif(100)),z1=runif(100)) grid = db.create(nx=c(100,100)) model = model.create(2,range=30) neigh = neigh.create(type=0,ndim=2) grid = kriging(data,grid,model,neigh) rg = range(grid[,"*estim"],na.rm=TRUE) plot(grid,zlim=rg) plot(data,name.color="z1",add=TRUE,cex=1.5,fg="black",zmin=rg[1],zmax=rg[2])