Learn R Programming

fields (version 5.02)

plot.surface: Plots a surface

Description

Plots a surface object in several different ways to give 3-d information e.g. a contour plots, perspective plots.

Usage

## S3 method for class 'surface':
plot(x, main = NULL, type = "C", zlab = NULL, xlab = NULL,
    ylab = NULL, levels = NULL, zlim = NULL, graphics.reset = NULL,
     labcex = 0.6, add.legend=TRUE, ...)

Arguments

See Also

surface, predict.surface, as.surface, drape.plot, image.plot

Examples

Run this code
fit<- Tps( BD[,1:4], BD$lnya) # fit surface to data 

# surface of variables 2 and 3 
#    holding 1 and 4 fixed at their median levels
 out.p<-predict.surface(fit, xy=c(2,3))  
 plot.surface(out.p, type="C") # surface plot

Run the code above in your browser using DataLab