Skip to contents

Convert Object into a Grob

Usage

# S3 method for class 'formula'
as_grob(x, ..., device = NULL, name = NULL)

# S3 method for class '`function`'
as_grob(x, ..., device = NULL, name = NULL)

Arguments

x

An object to be converted into a grob.

...

Graphical Parameters passed on to par().

device

A function that opens a graphics device for grid.echo() to work on. By default this is an off-screen, in-memory device based on the pdf device. This default device may not be satisfactory when using custom fonts.

name

A character identifier.

Value

A grob object.