Re: [R] plot CI and mortality rate

2010-10-20 Thread RINNER Heinrich
-project.org [mailto:r-help-boun...@r-project.org] Im Auftrag von XINLI LI Gesendet: Mittwoch, 20. Oktober 2010 02:00 An: R-help@r-project.org Betreff: [R] plot CI and mortality rate Dear R Users: I have the individual mortality rate and 95% CI of 100 hospitals, how to do the plot

[R] plot CI and mortality rate

2010-10-19 Thread XINLI LI
Dear R Users: I have the individual mortality rate and 95% CI of 100 hospitals, how to do the plot with the individual hospital in the Yaxis, and the mortality rate and 95% CI in the Xais and a overall mean as a reference line? Thanks and regards, Xin [[alternative HTML

Re: [R] plot CI and mortality rate

2010-10-19 Thread Ben Bolker
XINLI LI lihawaii at gmail.com writes: Dear R Users: I have the individual mortality rate and 95% CI of 100 hospitals, how to do the plot with the individual hospital in the Yaxis, and the mortality rate and 95% CI in the Xais and a overall mean as a reference line? Something

Re: [R] plot CI and mortality rate

2010-10-19 Thread Dennis Murphy
Hi: Following up on Ben's suggestion re ggplot2, here's a manufactured example: # Fake data: mortrate - round(runif(100), 3) dd - data.frame(rate = mortrate, moe = 1.96 * sqrt(mortrate * (1 - mortrate))/10, hosp = factor(paste('H', 1:100, sep = ''))) dim(dd) [1] 100 3 # Set