rvisualizationr-forestplot

remove meta analysis from forest plot


I'm using the meta R package to create a forest plot:

library(meta)    
m1 <- metacont(10 + 1:4, 1:4, c(1:2, 3, 4),
                   10 + 1:4, 1:4, c(1:2, 3, 4))
    
forest(m1)

enter image description here

I now want to remove the meta analysis and weights and the squares should also be of equal size. It should visualize the effects only.

I Photoshopped this:

enter image description here

How can I achieve this?


Solution

  • You can remove those values with overall.

    forest.meta(m1,overall=FALSE, overall.hetstat = FALSE)
    

    enter image description here

    You can check all possibility at the documentation