Romita Mukerjee, M.D.
2012-Oct-10 19:42 UTC
[R] combine unadjusted and adjusted forest plots
Hello, I am learning to use the metafor package to conduct meta-regression analyses for a systematic review on multidisciplinary care interventions in chronic kidney disease. For the forest plots, I can't figure out how to plot unadjusted and adjusted models on the same plot. From top to bottom, I would like to be able have the unadjusted plot, the multivariate adjusted plot, then each univariate adjusted plot. Below each plot I would like to also include a polygon with the respective summary estimate and confidence interval. I would also like to have only one x-axis at the bottom of the whole plot. The moderators for the meta-regression include both continuous and categorical variables. Any thoughts? Thanks, Romi Mukerjee Romita Mukerjee, M.D. Nephrology Fellow, PGY-6 Duke University Medical Center [[alternative HTML version deleted]]
Viechtbauer Wolfgang (STAT)
2012-Oct-18 08:00 UTC
[R] combine unadjusted and adjusted forest plots
Dear Romita, It is not quite clear to me what exactly you want the graph to look like. What do you mean by plots of the "unadjusted and adjusted models"? In general though, it sounds to me as if the graph you have in mind is rather complex. It may be possible to accomplish this with the forest() and addpoly() functions in the metafor package, but I can't say for sure. Essentially, what I would have to see first is a hand-sketch of the graph you would like to draw. At a certain point though, it may be easier to just create the graph with the low-level plotting functions in R (points, lines, segments, polygon, etc.). Best, Wolfgang -- Wolfgang Viechtbauer, Ph.D., Statistician Department of Psychiatry and Psychology School for Mental Health and Neuroscience Faculty of Health, Medicine, and Life Sciences Maastricht University, P.O. Box 616 (VIJV1) 6200 MD Maastricht, The Netherlands +31 (43) 388-4170 | http://www.wvbauer.com> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] > On Behalf Of Romita Mukerjee, M.D. > Sent: Wednesday, October 10, 2012 21:43 > To: r-help at r-project.org > Subject: [R] combine unadjusted and adjusted forest plots > > Hello, > > I am learning to use the metafor package to conduct meta-regression > analyses for a systematic review on multidisciplinary care interventions > in chronic kidney disease. For the forest plots, I can't figure out how > to plot unadjusted and adjusted models on the same plot. From top to > bottom, I would like to be able have the unadjusted plot, the multivariate > adjusted plot, then each univariate adjusted plot. Below each plot I > would like to also include a polygon with the respective summary estimate > and confidence interval. I would also like to have only one x-axis at the > bottom of the whole plot. The moderators for the meta-regression include > both continuous and categorical variables. Any thoughts? > > Thanks, > Romi Mukerjee > > > > Romita Mukerjee, M.D. > Nephrology Fellow, PGY-6 > Duke University Medical Center > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting- > guide.html > and provide commented, minimal, self-contained, reproducible code.