Is there a way to get a background color (like strip.background) to a title (sub/caption) element in ggplot2?
Asked
Active
Viewed 740 times
0
-
There may have been new functionality added in the last few years, but if not https://stackoverflow.com/questions/42351011/customize-background-color-of-ggtitle is relevant – user20650 Mar 16 '19 at 13:08
-
I'm afraid not. If you're really in a pickle, you can try creating your title elements using `geom_label()`, whose argument "fill" controls the background color. You would need to plot outside the panel region though, see https://stackoverflow.com/questions/12409960/ggplot2-annotate-outside-of-plot. – user2363777 Mar 16 '19 at 15:51