[R] combine unadjusted and adjusted forest plots
Viechtbauer Wolfgang (STAT)
wolfgang.viechtbauer at maastrichtuniversity.nl
Thu Oct 18 10:00:05 CEST 2012
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.
More information about the R-help
mailing list