[S] Plot with confidence interval

Bock, Juergen (JUERGEN.BOCK@Roche.COM)
Thu, 16 Apr 1998 16:04:39 +0200


> -----Original Message-----
> From: jxs@dor.kaiser.org [SMTP:jxs@dor.kaiser.org]
> Sent: Wednesday, 15. April 1998 20:53
> To: s-news@wubios.wustl.edu
> 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 "q<-quantile(X,c(1,0.5,0)".
> (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.
>
>
> Kind regards
> Prof. Juergen Bock, F.Hoffmann-La Roche, Basel, Switzerland
> juergen.bock@roche.com
> tel.: +41-61-6887130
> Fax:+41-61-6885335
>
-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news