[R] (no subject)

Frank E Harrell Jr
Fri, 14 Nov 2003 00:14:09 -0000

On Thu, 13 Nov 2003 19:07:15 +0000
"Wes McCardle" <w_mccardle at msn.com> wrote:

> Hello All,
> I hope you can help me.  I'm trying to put error bars in a xyplot
> trellis graph (see below).  I know there is a function for this,
> larrows, but for the life of me I can't figure out how to use it.
I've
> been using the default panel function (which is I haven't specified any
> panel function) and this produces the plot that I like.  I've tried
> defining a panel function based on some of the examples in the panel.*
> functions in lattice, but without much success.  I would appreciate any
> help that anyone can give me with this problem.  I can provide the data
> as an attached e-mail if needed. Thanks,
>
> xyplot(log10(Females+1)+log10(BG+1)~Trap.Type|Species,trap.agg,allow.mu
> ltiple=T,type='b',as.table=T,auto.key=T)
>
>
> Wes McCardle
> phone: (301) 504-8328
> fax: (301) 504-6580
> w_mccardle at msn.com
>

The xYplot function in the Hmisc package has some semi-automatic ways of
adding error bars/bands to plots.
---
Frank E Harrell Jr    Professor and Chair            School of Medicine
                      Department of Biostatistics    Vanderbilt University