View source: R/bargraph.CI_within.R
bargraph.CI.within | R Documentation |
Bargraph within-subject error bars
bargraph.CI.within( x.factor, response, group = NULL, data = NULL, sid = NULL, subset = NULL, conf.level = 0.95, within.ci.method = c("baguley", "morey", "cousineau"), ... )
x.factor |
a factor (required) whose levels will form the x axis. |
response |
a numeric variable giving the response. |
group |
grouping factor (optional) whose levels will form the traces. |
data |
an optional data frame. |
sid |
subject identifier |
subset |
an optional expression indicating the subset of the rows of 'data' that should be used in the plot. |
... |
further graphical parameters. |
type |
the type of plot: lines, points, or both. Defaults to both. |
x.cont |
logical. Treat x.factor as a continuous variable? |
legend |
logical. Should a legend be included? |
trace.label |
overall legend label. |
leg.lab |
legend labels for trace factors. |
fixed |
logical. Should the legend be in the order of the levels of 'trace.factor' or in the order of the traces at their right-hand ends? |
x.leg, |
y.leg optional values to over ride the default legend placement. |
cex.leg |
character expansion value for legend labels. |
ncol |
number of columns to use for legend. |
pch |
a vector of plotting symbols or characters. |
fun |
the function to compute the summary statistic. Should return a single real value. Defaults to mean with NA values removed. |
ci.fun |
the functions to compute the CI. Should return a vector of length 2 defining the lower and upper limits of the CI's. Defaults to the mean +/- 1 standard error, with NA values removed. |
err.width |
set width of whiskers for error bars. |
err.col |
color for error bars. Defaults to col. |
err.lty |
line type for error bars. |
xlim, |
ylim range for x and y axes. |
cex |
overall plot character expansion value. |
lwd |
deterimines line width. |
col |
default color(s) for plot. |
cex.axis |
character expansion value for axis labels. |
xaxt |
should x-axis be drawn? |
Frank Papenmeier
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.