merge_element

0th

Percentile

Merge a parent element into a child element

This is a generic and element classes must provide an implementation of this method

Keywords
internal
Usage
merge_element(new, old)

# S3 method for default merge_element(new, old)

# S3 method for element merge_element(new, old)

Arguments
new

The child element in the theme hierarchy

old

The parent element in the theme hierarchy

Value

A modified version of new updated with the properties of old

Aliases
  • merge_element
  • merge_element.default
  • merge_element.element
Examples
# NOT RUN {
new <- element_text(colour = "red")
old <- element_text(colour = "blue", size = 10)

# Adopt size but ignore colour
merge_element(new, old)

# }
Documentation reproduced from package ggplot2, version 3.0.0, License: GPL-2 | file LICENSE

Community examples

Looks like there are no examples yet.