merge_element | R Documentation |
This is a generic and element classes must provide an implementation of this method
merge_element(new, old)
## Default S3 method:
merge_element(new, old)
## S3 method for class 'element_blank'
merge_element(new, old)
## S3 method for class 'element'
merge_element(new, old)
new |
The child element in the theme hierarchy |
old |
The parent element in the theme hierarchy |
A modified version of new
updated with the properties of
old
new <- element_text(colour = "red")
old <- element_text(colour = "blue", size = 10)
# Adopt size but ignore colour
merge_element(new, old)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.