This function is taken from John Fox's plotMeans function from the Rcmdr package
1 2 3 4 5 6 | plotMeans(response, factor1, factor2, error.bars = c("se", "sd", "conf.int",
"none"), level = 0.95, xlab = deparse(substitute(factor1)),
ylab = XMSG(in.targetString_sc = "mean of @1", in.firstBindVariable_sc =
deparse(substitute(response))), legend.lab = deparse(substitute(factor2)),
main = XMSG(in.targetString_sc = "Plot of Means"), pch = 1:n.levs.2,
lty = 1:n.levs.2, col = palette(), ...)
|
response |
the response variable |
factor1 |
the first grouping variable |
factor2 |
the second grouping variable |
error.bars |
the type of error bars to plot |
level |
the confidence level to use when plotting conf.int |
xlab |
x axis label |
ylab |
y axis label |
legend.lab |
legend label |
main |
main title of the plot |
pch |
plotting character i.e. symbol to use |
lty |
line type |
col |
color palette to use |
... |
additional arguments. unused currently. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.