Graphics Reference
In-Depth Information
Figure 9-1. Left: scatter plot with a title added; right: with a /n for a newline
Discussion
ggtitle() is equivalent to using labs(title = "Title text") .
If you want to move the title inside the plotting area, you can use one of two methods, both of
which are a little bit of a hack ( Figure 9-2 ). The first method is to use ggtitle() with a neg-
ative vjust value. The drawback of this method is that it still reserves blank space above the
plotting region for the title.
Search WWH ::




Custom Search