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