| plotMeans | R Documentation |
Plot Means for One or Two-Way Layout
plotMeans(
response,
factor1,
factor2,
error.bars = c("se", "sd", "conf.int", "none"),
level = 0.95,
xlab = deparse(substitute(factor1)),
ylab = paste("mean of", deparse(substitute(response))),
legend.lab = deparse(substitute(factor2)),
legend.pos = c("farright", "bottomright", "bottom", "bottomleft", "left", "topleft",
"top", "topright", "right", "center"),
main = "Plot of Means",
pch = 1:n.levs.2,
lty = 1:n.levs.2,
col = palette(),
connect = TRUE,
...
)
response |
Numeric variable for which means are to be computed. |
factor1 |
Factor defining horizontal axis of the plot. |
factor2 |
If present, factor defining profiles of means. |
error.bars |
If |
level |
level of confidence for confidence intervals; default is .95 |
xlab |
Label for horizontal axis. |
ylab |
Label for vertical axis. |
legend.lab |
Label for legend. |
legend.pos |
Position of legend; if |
main |
Label for the graph. |
pch |
Plotting characters for profiles of means. |
lty |
Line types for profiles of means. |
col |
Colours for profiles of means. |
connect |
connect profiles of means, default |
... |
arguments to be passed to |
Plots cell means for a numeric variable in each category of a factor or in each combination of categories of two factors, optionally along with error bars based on cell standard errors or standard deviations.
The function invisibly returns NULL.
John Fox
interaction.plot
data(Moore)
with(Moore, plotMeans(conformity, fcategory, partner.status, ylim=c(0, 25)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.