This function used to create legends for the forest plot.
legend_grob(
name = "",
label,
position = c("right", "top", "bottom"),
hgap = unit(0.1, "lines"),
vgap = unit(0.5, "lines"),
pch = 15,
ncol = 1,
gp = gpar(lty = 1, col = "black", fill = "black", fontsize = 12, fontfamily = ""),
byrow = TRUE,
...
)
A frame grob
Character string, Legend name.
legend labels (expressions).
Position of the legend, "right"
, "top"
,
"bottom"
.
Horizontal gap between the legend entries,
see legendGrob
for details.
Vertical gap between the legend entries,
see legendGrob
for details.
Legend symbol.
integer; the number of columns
Graphical parameters.
logical indicating whether rows of the legend are filled first.
Other parameters, not used currently.