[R] Re: simple bar plot with confidence interval

Haun Jung haun_jung at yahoo.com
Fri Apr 26 02:02:03 CEST 2002


Hi again,

I camed up with the following script, which works
except it doesn't look very pretty. If someone can
suggest how to improve the graphics (e.g. adding a
horizontal bar, etc.), I'd appreciate it.

tbarHeight<-c(0.2700797, 0.7149945, 0.922099)
names(tbarHeight)<-c("A", "B", "C")
tbars<-barplot(height=tbarHeight,
axes=T,ylim=c(0,1.2))
tl<-c(0.4256, 0.8611, 0.9883) #lower whisks
tu<-c(0.2048, 0.5797, 0.7914) #upper whisks
segments(x0=tbars, x1=tbars, y0=tl, y1=tu)


--- Haun Jung <haun_jung at yahoo.com> wrote:
>   Hi, I have the following numbers as a result of
>   bootstrap:
>   
>   Bootstrap Statistics :
>       original      bias    std. error
>   t1* 0.2700797 0.02168322  0.05843803
>   
>   Intervals : 
>   Level     Percentile     
>   95%   ( 0.2048,  0.4256 )  
>   
>   Can somebodly please show me how to plot a bar
> with
>   confidence interval? I've searched the archive,
> but
> i'm a novice, so it didn't help much, and I need it
> really urgently. I'd be immensely grateful. 
> 
> 
> __________________________________________________
> Do You Yahoo!?

> http://games.yahoo.com/
> 


__________________________________________________



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list