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. [[alternative HTML version deleted]]
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
In a message dated 2/10/04 3:33:07 AM Pacific Standard Time, feh3k@spamcop.net writes:> On Tue, 10 Feb 2004 04:30:46 EST > TyagiAnupam@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. >This is wonderful! Thanks. How do I change the default colors for the session and the colors for each Dotplot() individually? I can't do that from within the Dotplot() function. [[alternative HTML version deleted]]