I have a plot with some long labels and a long title. I'm using coord_flip()
, so there is a lot of space outside of the plot margins due to the labels. By default the title is constrained to the plot margin.
How can I get the title to extend beyond the plot margin (to the left) so that it can span the entire width? Here is an example:
ggplot(diamonds, aes(x = cut)) +
geom_bar() +
coord_flip() +
scale_x_discrete("Cut",
labels = c("Fair" = "Fair and a very long extra thing",
"Good" = "Good and a very long extra thing",
"Very Good" = "VG and a very long extra thing",
"Premium" = "P and a very long extra thing. A very long label, just because",
"Ideal" = "I and a very long extra thing")) +
ggtitle("This is my very long title. Long long title. Very long. The Longest. We have the best long titles.")