Skip to content

reposition_legend: Extract legend from gtable #10

@stefanedwards

Description

@stefanedwards

If legend is not given and the plot object is not ggplot, reposition_legend fails.

We should at least attempt to extract the guidebox from the gtable object, remove the guidebox grob from the gtable object.

Problem: Replacing the guidebox grob with e.g. a zeroGrob will leave an empty space - should we... ? Set the width/height of that cell to 0 (depending on it being left/right or top/bottom)? Add another bloody argument to control that behaviour?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions