legend_grob: Create legends

View source: R/legend_grob.R

legend_grobR Documentation

Create legends

Description

This function used to create legends for the forest plot.

Usage

legend_grob(
  name = "",
  label,
  position = c("right", "top", "bottom"),
  hgap = unit(0.1, "lines"),
  vgap = unit(0.5, "lines"),
  pch = 15,
  gp = gpar(lty = 1, col = "black", fill = "black", fontsize = 12, fontfamily = ""),
  ...
)

Arguments

name

Character string, Legend name.

label

legend labels (expressions).

position

Position of the legend, "right", "top", "bottom".

hgap

Horizontal gap between the legend entries, see legendGrob for details.

vgap

Vertical gap between the legend entries, see legendGrob for details.

pch

Legend symbol.

gp

Graphical parameters.

...

Other parameters, not used currently.

Value

A frame grob


forestploter documentation built on May 29, 2024, 5:48 a.m.