Last chance! 50% off unlimited learning
Sale ends in
This is a generic and element classes must provide an implementation of this method
merge_element(new, old)# S3 method for default
merge_element(new, old)
# S3 method for element_blank
merge_element(new, old)
# S3 method for element
merge_element(new, old)
The child element in the theme hierarchy
The parent element in the theme hierarchy
A modified version of new
updated with the properties of
old
# NOT RUN {
new <- element_text(colour = "red")
old <- element_text(colour = "blue", size = 10)
# Adopt size but ignore colour
merge_element(new, old)
# }
Run the code above in your browser using DataLab