Usage
error.bars.by(x,group,by.var=FALSE,x.cat=TRUE,ylab =NULL,xlab=NULL,main=NULL,ylim= NULL, alpha=.05,sd=FALSE, labels=NULL,pos=NULL,arrow.len=.05,add=FALSE,bars=FALSE,within=FALSE,colors=c("black","blue","red"),lty=NULL,...)
Arguments
by.var
A different line for each group (default) or each variable
x.cat
Is the grouping variable categorical (TRUE) or continuous (FALSE
ylim
if specified, the limits for the plot, otherwise based upon the data
alpha
alpha level of confidence interval. Default is 1- alpha =95% confidence interval
sd
sd=TRUE will plot Standard Deviations instead of standard errors
pos
where to place text: below, left, above, right
arrow.len
How long should the top of the error bars be?
add
add=FALSE, new plot, add=TRUE, just points and error bars
bars
Draw a barplot with error bars rather than a simple plot of the means
within
Should the s.e. be corrected by the correlation with the other variables?
colors
groups will be plotted in different colors (mod n.groups)
lty
line type may be specified in the case of not plotting by variables
...
other parameters to pass to the plot function, e.g., typ="b" to draw lines, lty="dashed" to draw dashed lines