-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Facet: gain draw_facet_panels method to draw grobs for each panel #6421
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
Conversation
Thanks for the PR! I'll get around to reviewing it at some point after discussing with Thomas a bit |
R/facet-.R
Outdated
@@ -138,6 +142,34 @@ Facet <- ggproto("Facet", NULL, | |||
draw_front = function(data, layout, x_scales, y_scales, theme, params) { | |||
rep(list(zeroGrob()), vec_unique_count(layout$PANEL)) | |||
}, | |||
draw_facet_panels = function(self, panels, layout, x_scales, y_scales, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a better self-descriptive name for this method that we could choose here? Something like draw_panel_content()
? It is a bit confusing that there already is a draw_panels()
method and I don't think 'facet panels' is doing any favours clearing up any distinction.
Thanks for reviewing—I’ve renamed the method accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you for the contribution! I think the failing tests are due to the new scales release, so we might have to wait for #6441 to get merged in first.
Co-authored-by: Teun van den Brand <49372158+teunbrand@users.noreply.github.com>
fix #6406
Following the advice of @teunbrand