spvcontour: Contour Plot of Scaled Prediction Variances

Description Usage Arguments Value Examples

View source: R/VdgRsm.R

Description

Create a contour plot of scaled prediction variances

Usage

1
2
  spvcontour(design.matrix, shape, max.radius = sqrt(2), length = 100, 
  nlevels = 10, title = "Contour of SPVs")

Arguments

design.matrix

A data frame of design points. There should be one column for each factor in the design, and one row for each run in the design. Only design with 2 factors is allowed.

shape

The shape can be "circle" or "square" which represent a shape of design space.

max.radius

The radius of a circle.

length

Argument from the interp fucntion in library akima.

nlevels

Argument from the interp fucntion in library akima.

title

The title of a contour plot.

Value

spvcontour is called to generate a contour plot of scaled prediction variances for response surface designs.

Examples

1
2
3
4
5
6
7
8
 
  library(akima)
  CCD1<- gen.CCD(n.vars = 2, n.center = 2, alpha = 1)
  spvcontour(CCD1, shape = "square")
  CCD2<-gen.CCD(n.var = 2, alpha = sqrt(2), n.center = 3)
  spvcontour(CCD2, shape = "circle")
  spvcontour(CCD2, shape = "circle", length = 200)
  spvcontour(CCD2, shape = "circle", length = 200, nlevels = 20)

VdgRsm documentation built on May 30, 2017, 8:05 a.m.

Related to spvcontour in VdgRsm...