Description Usage Arguments Value Note Author(s) References See Also Examples

This function creates a ternary plot (contour plot) for mixture designs (i.e. object of class mixDesign)

1 2 3 |

`x` |
factor 1 of the |

`y` |
factor 2 of the |

`z` |
factor 3 of the |

`response` |
the response of the |

`data` |
the |

`main` |
giving an overall title for the plot: see |

`xlab` |
giving a title for the x axis : see |

`ylab` |
giving a title for the y axis : see |

`zlab` |
giving a title for the z axis : see |

`border` |
numeric or character (for example “red”) value specifying the color of the surroundimg the ternary plot. |

`form` |
a character string or a formula with the syntax “y ~ A + B +C”. -
“linear” -
“quadratic” -
“fullCubic” -
“specialCubic”
How the |

`col` |
a predefined (1, 2, 3 or 4) or self defined |

`col.text` |
a numerical value or a character string (like “red”) giving the color oft the inscription of the axes. |

`cex.axis` |
numerical value giving the size of the inscription of the axes. |

`axes` |
logical value specifying whether the axes should be plotted or not. |

`steps` |
resolution of the plot (number of rows for the square matrix), also number of grid points per factor. |

`factors` |
list of factors for categorizing with setting in case there are more than 3 factors (not yet implemented). |

`contourPlot3`

returns an invisible matrix containing the response values as NA's and numerics.

This method is still under construction!

For an example in context which shows the usage of the function `contourPlot3()`

to an object of class `mixDesign`

,
please read the vignette for the package `qualityTools`

at http://www.r-qualitytools.org/html/Improve.html.

Thomas Roth [email protected]

MYERS, Raymond H.; MONTGOMERY, Douglas C.; ANDERSON-COOK, Christine M.: Response Surface Methodology. New York: WILEY ,2009

`wirePlot3`

`mixDesign`

`colorRampPalette`

http://www.r-qualitytools.org/html/Improve.html

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | ```
#yarn example p.564 Response Surface Methodology
mdo = mixDesign(3,2, center = FALSE, axial = FALSE, randomize = FALSE,
replicates = c(1,1,2,3))
names(mdo) = c("polyethylene", "polystyrene", "polypropylene")
units(mdo) = "percent"
elongation = c(11.0, 12.4, 15.0, 14.8, 16.1, 17.7, 16.4, 16.6, 8.8, 10.0, 10.0,
9.7, 11.8, 16.8, 16.0)
response(mdo) = elongation
dev.new(14,14); par(mfrow = c(2,2))
contourPlot3(A, B, C, elongation, data = mdo, form = "linear")
contourPlot3(A, B, C, elongation, data = mdo, form = "quadratic", col = 2)
contourPlot3(A, B, C, elongation, data = mdo,
form = "elongation ~ I(A^2) - B:A + I(C^2)", col = 3)
contourPlot3(A, B, C, elongation, data = mdo, form = "quadratic",
col = colorRampPalette(c("yellow", "white", "red")))
``` |

```
Loading required package: Rsolnp
Loading required package: MASS
Attaching package: 'qualityTools'
The following object is masked from 'package:stats':
sigma
Warning messages:
1: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
implicit list embedding of S4 objects is deprecated
2: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
implicit list embedding of S4 objects is deprecated
3: In `[<-`(`*tmp*`, i, value = <S4 object of class "doeFactor">) :
implicit list embedding of S4 objects is deprecated
[1] "elongation"
```

qualityTools documentation built on May 30, 2017, 1:43 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.