The Class for Legends

Details

This is a very simple class for legends that it only has one slot which is the real grob of the legends.

Construct a single legend by Legend and a group of legends by packLegend.

Examples

lgd = Legend(at = 1:4) lgd
#> A single legend without title
lgd@grob
#> legend_body[GRID.legend_body.333]