Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reposition_legend: Extract legend from gtable #10

Open
stefanedwards opened this issue Jul 4, 2018 · 0 comments
Open

reposition_legend: Extract legend from gtable #10

stefanedwards opened this issue Jul 4, 2018 · 0 comments
Assignees

Comments

@stefanedwards
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant