prspctv {labsimplex}R Documentation

3D perspective plot of example response surfaces

Description

Plots a persp plot of the bivariate example response surfaces included in the package.

Usage

prspctv(surface, length = 45, noise = 0, x1lim = c(278, 365),
  x2lim = c(0, 14), par = NULL, theta = 22, phi = 15, shade = 0.2,
  ticktype = "detailed", ...)

Arguments

surface

example response surface to use. See exampleSurfaceR2 and exampleSurfaceR2.2pks.

length

number of levels to use in each explanatory variables

noise

absolute noise to be included in the results

x1lim

limits for the first variable (temperature in exampleSurfaceR2 and exampleSurfaceR2.2pks)

x2lim

limits for the second variable (pH in exampleSurfaceR2 and exampleSurfaceR2.2pks)

par

list with graphical parameters (par).

theta

angles defining the viewing direction. theta gives the azimuthal direction and phi the colatitude.

phi

angles defining the viewing direction. theta gives the azimuthal direction and phi the colatitude.

shade

the shade at a surface facet is computed as ((1+d)/2)^shade, where d is the dot product of a unit vector normal to the facet and a unit vector in the direction of a light source. Values of shade close to one yield shading similar to a point light source model and values close to zero produce no shading. Values in the range 0.5 to 0.75 provide an approximation to daylight illumination.

ticktype

character: "simple" draws just an arrow parallel to the axis to indicate direction of increase; "detailed" draws normal ticks as per 2D plots.

...

additional graphical parameters (see par).

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Jesús Ágreda, jagreda@unal.edu.co

Examples

  prspctv(surface = exampleSurfaceR2.2pks)
  prspctv(surface = exampleSurfaceR2.2pks, theta = 35, phi = 25,
          expand = 0.75, xlab = 'Temperature (K)', ylab = 'pH',
          zlab = 'Yield (%)')

[Package labsimplex version 0.1.2 Index]