How to combine forest plots in package metafor?
假设下面的代码(在 http://www.metafor-project.org/doku.php/plots:forest_plot_with_subgroups 中给出)
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
library(metafor)
### decrease margins so the full space is used ### fit random-effects model (use slab argument to define study labels) ### set up forest plot (with 2×2 table counts added; rows argument is used ### set font expansion factor (as in forest() above) and use bold italic ### add text for the subgroups ### switch to bold font ### add column headings to the plot ### set par back to the original settings ### fit random-effects model in the three subgroups ### add summary polygons for the three subgroups |
这段代码给出了以下组合森林图:
所以我的问题是如何在图的最底部去除总相对风险及其相应的结果?换句话说,我只想绘制一些森林图并在同一个图上显示它们,但不想将它们组合并显示结果。
在 forest(…) 部分,使用 addfit=FALSE。然后您还想调整 ylim 值。在这种情况下,ylim=c(1, 27) 应该可以工作。
来源:https://www.codenong.com/39138608/