Adding OR and 95% CI to the forest plots

13 views
Skip to first unread message

Pradip

unread,
Nov 4, 2014, 4:27:24 PM11/4/14
to ggp...@googlegroups.com
 
Hello,
 
I have made my forest plots (please see the attachment) using the code below. Could someone give me hints or help me with the code that I need to add in order to have the OR and 95% CI printed under each geom_hline?
I could send you the reprodicble code if needed.
 
Thanks,
 
Pradip Muhuri
 
 
##################################################################
p <- ggplot(data, aes(x=xcovariate_f, or,y=or, ymin=lc, ymax=uc))+
  geom_pointrange()+
  geom_hline(aes(x=0), lty=2) +
  facet_wrap(~ age_cat_f)+
  coord_flip()+
  xlab ("  ")+
  ylab("  ")+
 
  theme_bw() +
  theme(panel.grid.major=element_blank(),panel.grid.minor=element_blank())+
  theme(strip.text.x=element_text(),
        strip.background = element_rect(colour="black", fill='white')  )
 
  print(p)
forest_plots_mort1.rev1.R
Reply all
Reply to author
Forward
0 new messages