Dear All, I'm having trouble tweaking a forest plot made using the R meta-analysis package metafor. My main problem is that I have two studies which have very large Confidence intervals and as such my forest plot is very wide, and not neat. As I would like to add more descriptive columns into the plot too, I was wondering if there was a way to cut the confidence interval in the graph and add arrows to suggest that it continues on, while keeping the OR values correct so that the reader can view the CI clearly. <http://r.789695.n4.nabble.com/file/n4709857/SNIP.png> I hope I am clear in what I am asking, but here is an example of what I am hoping is possible in Metafor <http://r.789695.n4.nabble.com/file/n4709857/arrows.png> -- View this message in context: http://r.789695.n4.nabble.com/Altering-Forest-plot-in-Metafor-package-tp4709857.html Sent from the R help mailing list archive at Nabble.com.
Viechtbauer Wolfgang (STAT)
2015-Jul-14 19:52 UTC
[R] Altering Forest plot in Metafor package
Use the 'alim' argument (or the 'at' argument) to restrict the axis limits, so that CI bounds below/above are indicated with an arrow. And play around with the 'xlim' argument to make better use of the space in the plotting region. And the 'ilab' argument allows you to add columns with additional information to the plot. Please read help(forest.rma) carefully and especially try out all of the examples. They illustrate the use of these arguments. Best, Wolfgang ________________________________________ From: R-help [r-help-bounces at r-project.org] On Behalf Of Fosulli [fosulli at tcd.ie] Sent: Tuesday, July 14, 2015 6:42 PM To: r-help at r-project.org Subject: [R] Altering Forest plot in Metafor package Dear All, I'm having trouble tweaking a forest plot made using the R meta-analysis package metafor. My main problem is that I have two studies which have very large Confidence intervals and as such my forest plot is very wide, and not neat. As I would like to add more descriptive columns into the plot too, I was wondering if there was a way to cut the confidence interval in the graph and add arrows to suggest that it continues on, while keeping the OR values correct so that the reader can view the CI clearly. <http://r.789695.n4.nabble.com/file/n4709857/SNIP.png> I hope I am clear in what I am asking, but here is an example of what I am hoping is possible in Metafor http://r.789695.n4.nabble.com/file/n4709857/arrows.png -- View this message in context: http://r.789695.n4.nabble.com/Altering-Forest-plot-in-Metafor-package-tp4709857.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.