R Metaprop P-value overlapping with forest plot axes

16 Views Asked by At

Trying to plot a forest plot using R Metaprop with the following code:

pes.summary  <- metaprop(`Events`, `Nodules`, `Author` , data = data , sm = "PFT", fixed = FALSE, random = TRUE, subgroup = Subgroup)
forest(pes.summary)

The code is working no problem, but the displayed p-value overlaps with the axis of the forest plot as shown in the picture below.

enter image description here

This specifically happens when I exclude either Random or Common effects model. When you print both, there ends up being enough spacing that there isn't any overlap, but just printing one causes the overlap seen here. How can I add a newline after Heterogeneity to avoid this overlap?

1

There are 1 best solutions below

0
Akshay Chacko On

Solution:

forest(pes.summary, colgap.forest.left = "2cm")

I needed to add the colgap argument.