I am using the meta
package in R to do a meta-analysis of proportions. I have about a hundred studies in my analysis. When I type forest(result)
to create my forest plot, it works, but the graphic is chopped off at the top and bottom. It won't fit in the plot window no matter what I do! I am stumped on how to solve this. Any ideas?
Asked
Active
Viewed 8,942 times
6

Alexander
- 977
- 1
- 13
- 29
-
4Save it out to a PDF or PNG file. – Gregor Thomas Mar 19 '15 at 00:02
-
1Any idea how to do that? I tried typing `png(filename = "test.png")` but it still cuts off the image (see above). – Alexander Mar 19 '15 at 00:07
-
3have you tried `pdf(filename="test.pdf",width=20,height=8)` (extreme but should give you the idea)? – Ben Bolker Mar 19 '15 at 00:14
-
Thanks that did the trick. I usually right click on the graphic and copy it as a meta-file, then paste that into PowerPoint, where I can ungroup it and play around with the pieces. Is there a way to do that like this? – Alexander Mar 19 '15 at 00:33
-
3try `win.metafile(filename="test.wmf",width=20,height=8)` ? – Ben Bolker Mar 19 '15 at 00:37
1 Answers
0
I had the same issue and found setting the margins to be the easiest solution.
For those that encounter the same, read more here: https://bookdown.org/ndphillips/YaRrr/plot-margins.html

Sara
- 1
- 1
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/33916261) – Shawn Hemelstrand Feb 25 '23 at 16:26