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

Replace zeroGrob() with grid::nullGrob() #6390

Open
teunbrand opened this issue Apr 2, 2025 · 0 comments · May be fixed by #6391
Open

Replace zeroGrob() with grid::nullGrob() #6390

teunbrand opened this issue Apr 2, 2025 · 0 comments · May be fixed by #6391

Comments

@teunbrand
Copy link
Collaborator

To my understanding, ggplot2 use to have a nullGrob() function itself. At some point, {grid} also introduced a homonymous function, forcing ggplot2 to introduce zeroGrob() to avoid a namespace conflict (7f12f21). However, I think grid::nullGrob() does the same thing as ggplot2::zeroGrob(), namely: draw nothing. In principle, we could just use grid::nullGrob() instead.

@teunbrand teunbrand linked a pull request Apr 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant