Convert to a gtable
as.gtable(x, ...)
# S3 method for class 'grob'
as.gtable(x, widths = NULL, heights = NULL, ...)
An object to convert.
Arguments forwarded to methods.
Scalar unit setting the size of the table. Defaults
to grid::grobWidth()
and grid::grobHeight()
of x
respectively.
A gtable object
as.gtable(grob)
: Creates a 1-cell gtable containing the grob.