The idea is that it'd be inconvenient for several packages to declare their own conversion functions and instead could just write methods for an as.gtable() generic. Several instances of this are ggplot2::ggplotGrob()/ggplot2::ggplot_gtable() and gt::as_gtable().
The idea is that it'd be inconvenient for several packages to declare their own conversion functions and instead could just write methods for an
as.gtable()
generic. Several instances of this areggplot2::ggplotGrob()
/ggplot2::ggplot_gtable()
andgt::as_gtable()
.