Re: [R] add sd to a plot

2010-03-29 Thread Jim Lemon
On 03/29/2010 08:45 PM, karine heerah wrote: Hi, I would like to add sd bar to an existing plot. How can i do that? Hi Karine, bar.err (agricolae) plotCI (gplots) xYplot (Hmisc) error.bars (psych) dispersion (plotrix) plotCI (plotrix) and probably a few more. Jim ___

[R] add sd to a plot

2010-03-29 Thread karine heerah
Hi, I would like to add sd bar to an existing plot. How can i do that? For example: library("MASS") x <- rnorm(100) mean <- mean(x) sd <- sd(x) plot(mean) ## How can i add the sd bar around the mean point? thanks a lot Karine HEERAH Master 2 , océanographie et environ