Learn R Programming

lemon (version 0.4.9)

render_gpar: 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

render_gpar(theme, element, ...)

Value

A grid.grob or gpar object.

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).

See Also