Skip to content

Conversation

teunbrand
Copy link
Collaborator

@teunbrand teunbrand commented Sep 30, 2025

This PR fixes a pet peeve of mine: the build method(s) don't read very nicely.

First off, ggplot_build() and ggplot_gtable() are in the same file, which is messy because they are both user-facing functions, they do things independently and are also documented separately.

Secondly, I understand why ggplot_build() is hard to read: it is complicated.
However, ggplot_gtable() has a lot of gtable operation complexity, which can be easily hidden away in some choice helper functions. It becomes a lot simpler to understand what ggplot_gtable() is doing if the steps are separate functions.

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

Successfully merging this pull request may close these issues.

1 participant