Learn R Programming

lemon (version 0.4.3)

element_render: Render a ggplot2 grob or retrieve its gpar object.

Description

Helps add the ggplot2-theme's look-and-feel to grid's grob objects. render_gpar returns a gpar-object, element_render returns a grid.grob-object.

Usage

element_render(theme, element, ..., name = NULL)

render_gpar(theme, element, ...)

Arguments

theme

A ggplot2 theme

element

The name of an element in the theme, e.g. "axis.text".

...

Additional arguments sent to grobs (e.g. x or y).

name

Returned grob's name..

Value

A grid.grob or gpar object.

See Also

theme