element_render: Render a specified theme element into a grob

View source: R/theme-elements.r

element_renderR Documentation

Render a specified theme element into a grob

Description

Given a theme object and element name, returns a grob for the element. Uses element_grob() to generate the grob.

Usage

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

Arguments

theme

The theme object

element

The element name given as character vector

...

Other arguments provided to element_grob()

name

Character vector added to the name of the grob


ggplot2 documentation built on Nov. 4, 2022, 5:05 p.m.