cubePlot | R Documentation |
A cube plot for the combined effect of three factors is produced (function cubePlot). Functions cubedraw, cubecorners, cubelabel and myscatterplot3d are not intended for users.
cubePlot(obj, eff1, eff2, eff3, main=paste("Cube plot for",respnam),
cex.title=1.5,cex.lab=par("cex.lab"), cex.ax=par("cex.axis"),
cex.clab=1.2, size=0.3, round=NULL,
abbrev=4,y.margin.add=-0.2, modeled=TRUE)
obj |
a vector of response values to be analyzed OR a linear model object with 2-level factors or numerical 2-level variables (CAUTION: numerical x-variable have to be coded as -1 and +1 only!); the structure must be such that effects are either fully aliased or orthogonal, like in a fractional factorial 2-level design |
eff1 |
cf. |
eff2 |
cf. |
eff3 |
effects to be included in the cube plot (x-, y-, z-direction),
EITHER vectors of equal length (two-level factors or numerical
with the two values -1 and 1)
OR variable names of main effects within the |
main |
title for the plot, |
cex.title |
multiplier for size of overall title
( |
cex.ax |
size of axis tick marks, defaults to |
cex.lab |
size of axis labels |
cex.clab |
size of corner labels |
size |
size of cube corners |
round |
optional rounding of corner labels (digits argument for function
|
abbrev |
number of characters shown for factor levels |
y.margin.add |
adjustment parameter for placement of y-axis labeling |
modeled |
TRUE (default: show modeled means; FALSE: show averages NOTE: Even when showing modeled means, there also appears to be a three-factor-interaction, if the model contains an effect that is aliased with this interaction! |
cubePlot
produces a cube plot of the modeled means or averages of
all combinations for three factors. The other functions are internal
and are called by cubePlot.
myscatterplot3d
is a modified version of scatterplot3d,
made more suitable for this situation.
cubePlot
is used for its side effects only.
Ulrike Groemping
Box G. E. P, Hunter, W. C. and Hunter, J. S. (2005) Statistics for Experimenters, 2nd edition. New York: Wiley.
FrF2-package
for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.