Place a Grob on a Figure Page
Arguments
- grob
A 'grid' grob, for example a legend from
LegendKeys().- at
Numeric
c(left, top)in millimetres.- hjust, vjust
Justification relative to
at.
Examples
key <- FigureGrob(grid::textGrob("Legend text", just = c(0, 1)), at = c(5, 5))
fig <- ComposeFigure(list(FigurePanel(NULL, c(5, 10, 40, 20), letter = "a")),
height_mm = 35, width_mm = 60, texts = list(key))
grid::grid.newpage(); print(fig)