Description Usage Arguments Value Examples

Create a contour plot of scaled prediction variances

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

`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 |

`nlevels` |
Argument from the interp fucntion in library |

`title` |
The title of a contour plot. |

`spvcontour`

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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.