'R Metafor forest plot study labels
I have a forest plot with three subgroups and one level of each subgroup comes from the same study. Within escalc I'm using slab=paste(study) and this places the correct labels in the forest plot, but since studies are repeated they are being ended with authoryear.1, authoryear.2, authoryear.3, etc. The forest plot looks like:
Group North
Smith 2021.1
Reed 2019.1
Group Central
Smith 2021.2
Reed 2019.2
Group South
Smith 2021.3
Reed 2019.3
What I want is...
Group North
Smith 2021
Reed 2019
Group Central
Smith 2021
Reed 2019
Group South
Smith 2021
Reed 2019
Solution 1:[1]
Indeed, escalc() enforces that study labels are unique. But you can use the slab argument of the forest() function to specify the study labels and they will be used as is.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Wolfgang |
