rp.anova | R Documentation |
This function plots response data, separated by one or two factors. It also creates a panel which controls the models which can be fitted to the data and displayed on the plot. A comparison model can also be selected and the results of an F-test are displayed graphically.
rp.anova(y, x, z, model = NA, model0 = NA, ylab = NA, xlab = NA, zlab = NA, title = NULL, lines = TRUE, panel = TRUE, panel.plot = TRUE, hscale = 1.3, vscale = hscale / 1.3)
y |
a vector of response values. |
x |
a factor which splits |
z |
an optional second factor which splits |
model, model0 |
logical vectors of length 2 or 4, for one or two factors respectively,
defining the initial and comparison models to be fitted. For one factor, the two values
determine whether each of the terms for the intercept and |
ylab |
a character name used for the response variable. |
xlab |
a character name used for the first factor. |
zlab |
a character variable used for the response axis label. |
title |
a character variable supplying a title. (This is used only in the case where |
lines |
a logical variable which determines whether lines are drawn to connect the estimated means for each group. This can be helpful in highlighting the relative positions of the means across the groups. |
panel |
a logical variable which determines whether a panel is created to allow interactive control of the fitted models. |
panel.plot |
a logical parameter which determines whether the plot is placed inside the
panel (TRUE) or the standard graphics window (FALSE). If the plot is to be placed inside
the panel then the |
hscale, vscale |
scaling parameters for the size of the plot when |
The data are displayed as points superimposed on a density strip created by the denstrip package. Selected models are displayed through the fitted values for each group. When a valid comparison model is selected, its fitted values are displayed along with a shaded regions expressing the contribution of the differences between the two sets of fitted values to the F-statistic. The F-test is displayed in graphical form with a density strip to represent the F-distribution and a point to indicate the observed value of the F-statistic.
Static plots, for printing or other purposes can be created by setting the panel argument to FALSE and specifying the models of interest.
Nothing is returned.
rpanel: Simple interactive controls for R functions using the tcltk package. Journal of Statistical Software, 17, issue 9.
## Not run: with(poisons, { rp.anova(1/stime, treatment, poison) }) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.