s-news
[Top] [All Lists]

RE: [S] Plot with confidence interval

To: "'jxs@dor.kaiser.org'" <jxs@dor.kaiser.org>
Subject: RE: [S] Plot with confidence interval
From: "Bock, Juergen (PDBS;Basel)" <JUERGEN.BOCK@Roche.COM>
Date: Thu, 16 Apr 1998 15:37:30 +0200
Cc: "'s-news@wubios.wustl.edu'" <s-news@wubios.wustl.edu>
Sender: owner-s-news@wubios.wustl.edu

> -----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.



-----------------------------------------------------------------------
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

<Prev in Thread] Current Thread [Next in Thread>