Message-ID: <20040210063106.6b6ce44d.feh3k@spamcop.net>
Date: 2004-02-10T11:31:06Z
From: Frank E Harrell Jr
Subject: confidence-intervals in dotchart
In-Reply-To: <bc.435cb204.2d59fec6@aol.com>
On Tue, 10 Feb 2004 04:30:46 EST
TyagiAnupam at aol.com wrote:
> My earlier posting should have said "dotchart", not "barchart".
>
> 1) How does one show confidence-intervals in a "dotchart" and use
> rownames for labels on the y-axes? I have looked at "plotCI" in
> "gregmisc" package . But it does not seem to produce something like a
> dotchart. The statistic, error, upper-bound, and lower-bound are in a
> dataframe.
>
> 2) How to show CI in a dotchart either using the statistic and, either
> (a) errors or (b) upper and lower bounds from a dataframe?
>
> An example will be very helpful.
You might look at the example on p.149
http://cran.r-project.org/doc/contrib/Harrell-statcomp-notes.pdf and other
examples in that section. These use the xYplot and Dotplot functions in
the Hmisc package, which extend lattice graphics to easily handle error
bars and bands.
---
Frank E Harrell Jr Professor and Chair School of Medicine
Department of Biostatistics Vanderbilt University