RE: [S] Plot with confidence interval

Bock, Juergen (JUERGEN.BOCK@Roche.COM)
Thu, 16 Apr 1998 15:37:30 +0200

> -----Original Message-----
> From: []
> Sent: Wednesday, 15. April 1998 20:53
> To:
> Subject: [S] Plot with confidence interval
> Does anyone have a function to plot mean and confidence interval
> by group.
There is a small but wonderful trick:

1. Create a data.frame containing the factor "group" and a
column "value" containing a value for the lower limit, a value for the
estimate and a value for the upper limit.
2. Modify the panel.bwplot function (to panel.confi) by
changing the line "q<-quantile(X,c(0.75,0.5,0.25)" to
(you can write panel.bwplot whithout brackets to the command
window and than copy and modify the source code)
3. bwplot(group~value, panel.function=panel.confi)

This gives you the whole flexibility of the bwplot for plotting
confidence limits depending on factors.

This message was distributed by To unsubscribe
send e-mail to with the BODY of the
message: unsubscribe s-news