Skip to content
Prev 4884 / 5636 Next

[R-meta] increase axis text size in funnel plot

Dear Sicong,

To adjust the size of the axis text and tick labels, use 'cex.axis' and 'cex.lab'.

For example:

dat <- escalc(measure="RR", ai=tpos, bi=tneg, ci=cpos, di=cneg, data=dat.bcg)
res <- rma(yi, vi, data=dat)

funnel(res)
funnel(res, cex=2)
funnel(res, cex=2, cex.axis=1.5, cex.lab=1.5)

To adjust the legend size, you will need the development version of metafor:

https://wviechtb.github.io/metafor/#installation

Then the 'legend' argument allows more flexibility. For example:

funnel(res, legend=TRUE)
funnel(res, legend=list(cex=2))

'cex' can even take on three different values, the first for the text, the second for the boxes, the third for the points. Like this:

funnel(res, cex=2, legend=list(cex=c(2,3,1)))

And to create 'composite figures', you can use:

par(mfrow=c(2,2))
funnel(res)
funnel(res, cex=2, cex.axis=1.5, cex.lab=1.5)
funnel(res, legend=TRUE)
funnel(res, cex=2, legend=list(cex=c(2,3,1)))

Best,
Wolfgang