Skip to main content
. 2022 May 23;30(3):e248775. doi: 10.1590/1413-785220223003e248775

Table 3. Commands for editing the forest plot in RStudio. Follow the sequence: forest (meta-analysis name, command 1, command 2, command 3, …, command n).

Command Function
test.overall = TRUE Displays the p-value (which determines the statistical significance of the study) and the Z-value (“diamond width calculation”) in the fixed and random models
comb.fixed = FALSE Omit in the chart the result/diamond of the fixed model
comb.random = FALSE Omit the result/diamond from the random model in the graph
col.diamond = “blue” Changes the color of the diamond (defaults to gray). Place the desired color in English between the “quotation marks.” In the example it is blue.
lab.e = “Medication A” Rename the experimental groups of the studies (the default is Experimental). Place the desired name in quotation marks. In the example it is Medication A.
lab.c = “Medication B” Change the name given to the control groups of the studies (the default is Control). Place the desired name in quotation marks. In the example it is Medication B.
xlab = “Favors A - Favors B” Places a text below the X-axis (horizontal).
Place the desired name in quotation marks.
In the example it is Favors A - Favors B