interaction.plots {s20x} | R Documentation |
Displays data with intervals for each combination of the two factors and shows the mean differences between levels of the first factor for each level of the second factor. Note that there should be more than one observation for each combination of factors.
interaction.plots(y, fac1, fac2, exlim=0.1, jitter=0.02, conf.level=0.95, interval.type="tukey", pooled=T, tick.length=0.1, interval.distance=0.2, col.width=2/3, xlabel.distance=0.1, xlen=1.5, ylen=1)
y |
response variable. |
fac1, fac2 |
two explanatory variables used as factors. |
exlim |
provide extra limits. |
jitter |
the amount of horizontal jitter to show in the plot. The actual jitter is determined as the function is called, and will likely be different each time the function is used. |
conf.level |
confidence level of the intervals. |
interval.type |
four options for intervals appearing on plot: "tukey", "hsd", "lsd" or "ci". |
pooled |
two options: pooled or unpooled standard deviation used for plotted intervals. |
tick.length |
size of tick, in inches. |
interval.distance |
distance, as a fraction of the column width, between the points and interval. This is in addition to the extra space allocated for the jitter. |
col.width |
width of a factor `column', as a fraction of the space between the centres of two columns. |
xlabel.distance |
distance of x-axis labels from bottom of plot, as a fraction of the overall height of the plot. |
xlen, ylen |
"summary.2way".
data("mtcars") attach(mtcars) interaction.plots(wt,vs,gear) detach(mtcars)