[R] confidence-intervals in dotchart
Frank E Harrell Jr
feh3k at spamcop.net
Tue Feb 10 12:31:06 CET 2004
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
More information about the R-help
mailing list