guido-s / meta

Official Git repository of R package meta
http://cran.r-project.org/web/packages/meta/index.html
GNU General Public License v2.0
82 stars 32 forks source link

Add more than 2 vertical lines to forest plot #50

Closed florianteichert closed 1 year ago

florianteichert commented 1 year ago

Hi, is it possible to include more than 2 lines in a forest plot? So far I only found out to edit 2 using the limits of equivalence argument (lower/upper.equi). However I would like to add 3 lines to both sides indicating thresholds for small, moderate and large effects like in the image below (from the fully contextualised GRADE approach).

Best regards, Florian

Screenshot 2023-03-22 at 00 31 23
guido-s commented 1 year ago

Arguments lower.equi and upper.equi can be numeric vectors specifying the thresholds. Furthermore, the new arguments fill.lower.equi and fill.upper.equi can be used to specify the colours of the various regions. If the number of colours is equal to the number of thresholds plus 1, the region between the lowest / highest threshold and the minimun / maximum is also filled (see help page of forest.meta for an example).

florianteichert commented 1 year ago

Vielen Dank!

Screenshot 2023-04-03 at 22 51 21