[R] Plot means with error bars - A novice needs help

Jim Lemon jim at bitwrit.com.au
Wed Oct 8 11:57:20 CEST 2008


Michael Just wrote:
> Hello,
> I'd appreciate a suggestion on how to construct plots (barplots?) that use
> means on the Y axis instead of density/count. I'd also like to use groups
> and plot error or confidence interval bars on these graphs. I know this is a
> read the manual situation. I'd appreciate help with what to read, or your
> benevolence with some sample code.
>
> I've looked at lattice and gplots2, but given my beginner status my efforts
> are not propelling me very far.
>   
Hi Michael,
Have a look at the barp function in the plotrix package. You can add 
error bars using the dispersion or dispbars function.

Jim



More information about the R-help mailing list