Learn R Programming

fields (version 1.3-1)

surface.Krig: Plots a surface and contours

Description

Creates different plots of the fitted surface of a Krig object. This is a quick way to look at the fitted function over reasonable default ranges.

Usage

surface.Krig(obj, grid.list=NA, extrap=FALSE, graphics.reset=TRUE, 
 xlab = NULL, ylab = NULL, main = NULL, zlab = NULL, zlim = NULL, 
    levels = NULL, type = "b", ...)

Arguments

Details

This function is essentially a combination of predict.surface and plot.surface. It may not always give a great rendition but is easy to use for checking the fitted surface. The default of extrap=F is designed to discourage looking at the estimated surface outside the range of the observations.

See Also

Krig predict.surface, plot.surface, image.plot

Examples

Run this code
fit<- Krig(ozone$x,ozone$y, theta=30)  # krig fit 

surface(fit, type="C") #Image plot with  contours

Run the code above in your browser using DataLab