Description Usage Arguments Value Note Author(s) References See Also Examples
This function creates a ternary plot for mixture designs (i.e. object of class mixDesign
).
1 2 |
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 |
form |
a character string or a formula with the syntax “y ~ A + B +C”.
How the |
phi |
numerical value specifying the angle (in degree) through which the plot is rotated about an imagined horizontal line. |
theta |
numerical value specifying the angle (in degree) through which the plot is rotated about an imagined vertical line. |
col |
a predefined (1, 2, 3 or 4) or self defined |
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). |
wirPlot3
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 wirePlot3()
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 thomas.roth@tu-berlin.de
CORNELL: Experiments with Mixtures - 3rd Ed. New Jersey: Wiley, 2011.
MYERS, Raymond H.; MONTGOMERY, Douglas C.; ANDERSON-COOK, Christine M.: Response Surface Methodology. New York: WILEY ,2009.
contourPlot3
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 elongation 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))
wirePlot3(A, B, C, elongation, data = mdo, form = "linear")
wirePlot3(A, B, C, elongation, data = mdo, form = "quadratic", col = 2)
wirePlot3(A, B, C, elongation, data = mdo,
form = "elongation ~ I(A^2) - B:A + I(C^2)", col = 3)
wirePlot3(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"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.