ggplot2 icon indicating copy to clipboard operation
ggplot2 copied to clipboard

Replace `zeroGrob()` with `grid::nullGrob()`

Open teunbrand opened this issue 6 months ago • 0 comments

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 (7f12f21f89ba51793bea9223c19e2a4fb02bd7b8). 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 avatar Apr 02 '25 08:04 teunbrand