Trouble with `ggplot2` and overridden default theme settings in R 4.3.1
I've looked through the documentation and I'm still confused about I've tried everything I can think of but I'm testing a new approach and I'm running into an scenario when trying to customize the default theme settings in `ggplot2`... After setting up my custom theme, the plots appear to ignore the changes I've implemented, and I get unexpected defaults instead. Here's the theme I've created: ```r custom_theme <- theme( plot.title = element_text(hjust = 0.5, size = 20, face = 'bold'), axis.title.x = element_text(size = 14, face = 'italic'), axis.title.y = element_text(size = 14, face = 'italic'), panel.background = element_rect(fill = 'lightblue') ) ``` I'm applying it using the `+` operator: ```r library(ggplot2) ggplot(mtcars, aes(x = wt, y = mpg)) + geom_point() + custom_theme ``` Despite this, the title is left-aligned and the panel background remains white. I even tried using `theme_set(custom_theme)` before plotting and am still working with the same scenario. I checked for any conflicts with other packages that might be overriding the theme settings, but nothing seems to work. This behavior is consistent across different versions of R and ggplot2, including R 4.3.1 and ggplot2 3.4.0. Any insights on how to properly apply custom themes in `ggplot2` or troubleshoot this scenario? What would be the recommended way to handle this? Any help would be greatly appreciated! I'm working on a desktop app that needs to handle this.