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

View source: R/grob_utils.r

render_gparR Documentation

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

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

Value

A grid.grob or gpar object.

See Also

theme


lemon documentation built on May 29, 2024, 8:48 a.m.