Closed mankowitz closed 7 years ago
Thank you for the hint.
I changed the default for argument 'byseparator' in forest.meta() in the GitHub version of R package meta. Now, the value for this argument defined in meta-analysis functions - like metaprop() - is recognized by forest.meta().
The other arguments are only used at the moment in the printing of meta-analysis objects. See, e.g., output of R command summary(m1)
.
You can use grid.text to add a title to a forest plot. E.g.,
pdf("forest-with-title.pdf", width = 9.5, height = 8)
##
forest(m1, calcwidth.hetstat = TRUE)
grid::grid.text("Intubation rates", 0.5, 0.96, gp = grid::gpar(cex = 2))
grid::grid.text("intubated", 0.5, 0.92, gp = grid::gpar(cex = 1.5))
##
dev.off()
thanks! The code snippet works well for the title, which is superimposed on top of the plot.
To change the column headings in the forest plot, I had to add leftlabs=c("Study","Intubated","Total")
In the following code,
The complab, coutclab, byseparator and title do not appear.