as.gtable: Convert to a gtable

View source: R/gtable.R

as.gtableR Documentation

Convert to a gtable

Description

Convert to a gtable

Usage

as.gtable(x, ...)

## S3 method for class 'grob'
as.gtable(x, widths = NULL, heights = NULL, ...)

Arguments

x

An object to convert.

...

Arguments forwarded to methods.

widths, heights

Scalar unit setting the size of the table. Defaults to grid::grobWidth() and grid::grobHeight() of x respectively.

Value

A gtable object

Methods (by class)

  • as.gtable(grob): Creates a 1-cell gtable containing the grob.


gtable documentation built on Oct. 30, 2024, 9:29 a.m.