Re: [R] plotting RR, 95% CI as table and figure in same plot

2010-04-19 Thread David Atkins
Thanks to Thomas and Christos for helpful suggestions. The forestplot (in package rmeta) suggestion seems to work fairly well for me, though does require a bit of fiddling (no complaints, obviously using it for a different purpose than it was written). Below is an example using a slightly "h

Re: [R] plotting RR, 95% CI as table and figure in same plot

2010-04-19 Thread Christos Argyropoulos
)+ opts( panel.grid.major = theme_blank(), panel.grid.minor=theme_blank(), title="", panel.background = theme_rect(fill=NA,colour=NA) )+ coord_flip()+ geom_text(aes(x=6.3,y=0.35,label="RR"),size=4)+ geom_text(aes(x=6.3,y=0.60,label="95% CI"),size=4) Christos

Re: [R] plotting RR, 95% CI as table and figure in same plot

2010-04-19 Thread Thomas Lumley
You could try the forestplot() function in rmeta, or the original grid code on which it is based, http://www.stat.auckland.ac.nz/~paul/RGraphics/chapter1.html -thomas On Mon, 19 Apr 2010, David Atkins wrote: Hi all-- I am in the process of helping colleagues write up a ms in which w

[R] plotting RR, 95% CI as table and figure in same plot

2010-04-19 Thread David Atkins
Hi all-- I am in the process of helping colleagues write up a ms in which we fit zero-inflated Poisson models. I would prefer plotting the rate ratios and 95% CI (as I've found Gelman and others convincing about plotting tables...), but our journals usually like the numbers themselves. Thu