https://github.com/cran/fields
Tip revision: 2a4b5cffe1902e0d2b0136705a9ed639bbab0c07 authored by Doug Nychka on 10 May 2004, 16:33:19 UTC
version 1.5
version 1.5
Tip revision: 2a4b5cf
surface.Krig.R
"surface.Krig" <-
function(obj, grid.list = NA, extrap = FALSE, graphics.reset = NULL, xlab = NULL,
ylab = NULL, main = NULL, zlab = NULL, zlim = NULL, levels = NULL,
type = "b", nx=30, ny=30,...)
{
## modified so that you can give main, and ylab as arguments
## in ... and have them passed correctly
out.p <- predict.surface(obj,
grid.list = grid.list, extrap = extrap, nx=nx,ny=ny)
if(!is.null(ylab))
out.p$ylab <- ylab
if(!is.null(xlab))
out.p$xlab <- xlab
if(!is.null(zlab))
out.p$zlab <- zlab
if(!is.null(main))
out.p$main <- main
## else
## out.p$main <- NULL
plot.surface(out.p, type = type, graphics.reset = graphics.reset,
levels = levels, zlim = zlim, ...)
invisible()
}