[R-sig-teaching] adding plus/minus 1 standard devaition into each bar in cluster bar chart
Hadley Wickham
hadley at rice.edu
Tue Dec 14 00:22:09 CET 2010
Before doing that, I'd highly recommend reading
http://biostat.mc.vanderbilt.edu/twiki/pub/Main/TatsukiRcode/Poster3.pdf
Hadley
On Sat, Dec 11, 2010 at 8:43 AM, Ali Zanaty <zanaty2005 at yahoo.com> wrote:
> Dear All R users:
>
> I hope that this message finds all of you well.
>
> Currently, I am teaching an undergraduate course in statistics.
>
> If possible, Could you please help me out how to add plus/minus 1 standard
> deviation added to each bar into R cluster bar chart.
>
> You can use the following artificial data.
>
> data cat 1 cat 2
> 23 1 1
> 45 1 1
> 34 1 1
> 5 1 1
> 32 1 1
> 44 1 1
> 3 2 1
> 1 2 1
> 2 2 1
> 3 2 1
> 4 2 1
> 5 1 2
> 6 1 2
> 7 1 2
> 8 1 2
> 544 2 2
> 78 2 2
> 543 2 2
> 34 2 2
> 89 2 2
> 9 1 3
> 43 1 3
> 23 1 3
> 45 1 3
> 7 1 3
> 5 1 3
> 7 1 3
> 6 2 3
> 867 2 3
> 3 2 3
> 4 2 3
> 5 2 3
> 6 2 3
> 7 2 3
> 8 2 3
> 9 2 3
>
> I need to create a bar chart for the mean of data column for each category. I
> know how to create the cluster bar chart. But I need your help with how to add
> plus/minus 1 standard deviation into each bar.
>
> Thank you so much for your helps and for your attention to this matter, and I
> look forward to hearing from you.
>
>
> Regards,
>
> zanaty
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-teaching at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-teaching
>
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
More information about the R-sig-teaching
mailing list