plot.surface {funfits}R Documentation

Plots a surface

Description

A surface plot is generated.

Usage

plot.surface(obj, lab=NA, type="p", zlab, xlab, ylab, graphics.reset = T, ...)

Arguments

obj A surface object at the minimum a list with components x,y and z in the same form as are contour and perp functions. Also an object from a fit, for example a tps, krig, or nnreg object.
lab Axes labels
type A type="p" for a perspective plot, type="c" for a contour plot and type="b" for both.
zlab z-axes label
xlab x-axes label
ylab y-axes labels
graphics.reset Reset to original graphics parameters after function plotting.
... Other graphical parameters

See Also

surface, predict.surface, as.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 list
predict.surface(fit,grid) -> out.p  # evalute on a grid on two
# variables holding two fixed at their mean levels
plot.surface(out.p) # surface plot 


[Package Contents]