powered by
This function takes a theme and completes it so that it can be used downstream to render theme elements. Missing elements are filled in and every item is validated to the specifications of the element tree.
complete_theme(theme = NULL, default = theme_get())
A theme object.
An incomplete theme object to complete, or NULL to complete the default theme.
NULL
A complete theme to fill in missing pieces. Defaults to the global theme settings.
my_theme <- theme(line = element_line(colour = "red")) complete_theme(my_theme)
Run the code above in your browser using DataLab