image.grf: Image, Contour or Perspective Plot of Simulated Gaussian...

image.grfR Documentation

Image, Contour or Perspective Plot of Simulated Gaussian Random Field


Methods for image, contour or perspective plot of a realisation of a Gaussian random field, simulated using the function grf.


## S3 method for class 'grf'
image(x, sim.number = 1, borders, x.leg, y.leg, ...)
## S3 method for class 'grf'
contour(x, sim.number = 1, borders, filled = FALSE, ...)
## S3 method for class 'grf'
persp(x, sim.number = 1, borders, ...)



an object of the class grf, typically an output of the function grf.


simulation number. Indicates the number of the simulation top be plotted. Only valid if the object contains more than one simulation. Defaults to 1.


optional. Typically a two coluns matrix especifying a polygon. Points outside the borders will be set no NA

x.leg, y.leg

limits for the legend in the horizontal and vertical directions.


logical. If FALSE the function contour is used otherwise filled.contour. Defaults to FALSE.


further arguments to be passed to the functions image, contour or persp.


An image or perspective plot is produced on the current graphics device. No values are returned.


Paulo Justiniano Ribeiro Jr.,
Peter J. Diggle


Further information about the package geoR can be found at:

See Also

grf for simulation of Gaussian random fields, image and persp for the generic plotting functions.


# generating 4 simulations of a Gaussian random field
sim <- grf(441, grid="reg",, .25), nsim=4)
op <- par(no.readonly = TRUE)
par(mfrow=c(2,2), mar=c(3,3,1,1), mgp = c(2,1,0))
for (i in 1:4)
  image(sim, sim.n=i)

geoR documentation built on Aug. 9, 2022, 5:11 p.m.

Related to image.grf in geoR...