Response Surface Plot

DESCRIPTION:

Creates a surface perspective plot for a response surface fit.

USAGE:

surface.rsm.lm(rsm.object, vary, granularity=50, ...) 

REQUIRED ARGUMENTS:

rsm.object
the output from fitting a response surface model using rsm.lm.

OPTIONAL ARGUMENTS:

vary
a list, with components named by the factors in rsm.object, that determines which two factors are varied on the x and y axes while the remaining factors are held constant. The components corresponding to the factors to be varied are assigned the value "v", while the remaining components are assigned either an explicit numeric value or the value "c" to indicate that the factor is to be held constant at its center point. (If a variable is omitted from the list, "c" is assumed.) By default, the first two factors in rsm.object are varied.
granularity
integer length of the vectors containing the x and y coordinates of the grid over which the response is evaluated.
...
other argments passed to persp

SIDE EFFECTS:

a surface perspective plot is produced on the current graphics device

REFERENCES:

Box, G.E.P. and Draper, N.R (1987), Empirical Model Building and Response Surfaces, New York: Wiley.

Box, G. E. P., W. G. Hunter, J. S. Hunter (1978), Statistics for Experimenters, New York: Wiley.

Haaland, P. D. (1989), Experimental Design in Biotechnology, New York: Marcel Dekker.

SEE ALSO:

, , ,

EXAMPLES:

# default surface plot 
abrsm.rsm <- rsm.lm(abrsm.df) 
surface(abrsm.rsm) 
# vary factors two factors while holding the third 
# at a fixed level 
sda.od.rsm <- rsm.lm(sda.df) 
surface(sda.od.rsm,vary=list(Hinc.II='v', 
     Exo.Klenow='v',time=3))