A numeric variable containing raw scores to be formed into the bars of the bargraph.
grp
Either (a) a single variable indicating the grouping factor, (b) a list of variables each indicating a different grouping factor, or (c) NULL (default) in which case only a single bar is graphed.
barFUN
The function used to create the bargraph. Usually mean is desired.
errFUN
A character element indicating the type of error bars to be calculated.There are four possible choices: "ci" (the default) uses a confidence interval for the mean with level indicated by the conf= argument. "se" uses 1 Standard Error from the mean. "sd" uses 1 Standard Deviation from the mean. NULL indicates no error bars are desired.
sides
A numeric indicating whether one-sided or two-sided error bars are desired.
conf
A numeric indicating the desired level of confidence if type "ci" is used for the errFUN argument.
...
Other arguments passed to the barplot() function including graphing parameters (e.g. 'ylim', 'col').
Details
This function plots a bargraph with error bars using raw data as input. This is different from and often more convenient than barplot() which requires the user to compute the values to be plotted and error bars outside of the function.