surface.surface {funfits}R Documentation

Plots a surface

Description

A surface plot is generated.

Usage

surface.surface(obj, lab=NA, type="b", zlab, xlab, ylab, ...)

Arguments

obj An object from a fit, for example a tps, krig, or nnreg object. Object can also be of class surface from a predict.surface function.
lab Axes labels
type A type="b" for both a perspective and contour plot, type "p" for a perspective plot and type="c" for a contour plot.
zlab z-axes label
xlab x-axes label
ylab y-axes labels
... Other graphical parameters

See Also

surface, surface.tps, predict.surface

Examples

tps( BD[,1:4], BD$lnya)-> fit  # fit surface to data
list( KCl="x", MgCl2=mean(BD[,2]),KPO4="y", dNTP=mean(BD[,4]))-> grid
# make grid 
predict.surface(fit,grid) -> out.p  # evalute on a grid on two
# variables holding two fixed 
surface(out.p) # surface plot and contour plot 


[Package Contents]