add_legend: Adds legend to plot

Description Usage Arguments Value See Also

View source: R/gglegends.R

Description

Adds legend to plot

Usage

1
2
add_legend(gtab, legends, height = NA, width = NA, pos = c("right", "top",
  "bottom"))

Arguments

gtab

a gtable

legends

legend grobs

height

height of column in which legend is added (only use if pos is "right")

width

width of column in which legend is added (only use if pos is "bottom" or "top")

pos

position

Value

gtable

See Also

get_legend


AliciaSchep/rplotfriend documentation built on May 5, 2019, 4:54 a.m.