draw_element: Generate grid grob from theme element

draw_elementR Documentation

Generate grid grob from theme element

Description

The element_grob() function is vestigial and draw_element() should be used instead.

Usage

draw_element(element, ...)

element_grob(element, ...)

Arguments

element

Theme element, i.e. element_rect or similar.

...

Other arguments to control specific of rendering. This is usually at least position. See the source code for individual methods.


hadley/ggplot2 documentation built on June 13, 2025, 12:51 a.m.