title: Improve editing of multiline title in ggplot that uses \n and extends far to the right
body: <p>Long, multiline titles in <code>ggplot2</code> that have <code>\n</code> line breaks in them stretch outside RStudio's window.  To edit the title you have to scroll far to the right sometimes.  It seems the title is all one string, indivisible.</p>
  
  <p>How can such a long title be visible completely in the RStudio window (without resizing the window) to make it easier to edit?  Ideally, I could insert a comma, then  to start a new indented line for each of the additional title lines.</p>
  
  <p>Here is a small example:</p>
  
  <pre><code>require(ggplot2)
  
  DF &lt;- data.frame(x = rnorm(400))
  ggplot(DF, aes(x = x)) + geom_histogram() +
    ggtitle("First line very long title ending with newline\nSecond line also very long so it extends to the right out of RStudio pane\nThird line to emphasize how far you have to scroll right")
  </code></pre>
  
  <p>Is there a way to break up that long <code>ggtitle()</code> call?</p>
  
  <p>It seemed this SO question could help, but I can't apply it's sprintf() solution to my problem.  <a href="https://stackoverflow.com/questions/28018473/how-to-avoid-linebreak-in-rs-sprintfvery-very-long-string-with-line-break">How to avoid linebreak in R&#39;s sprintf(&quot;very very long string with line break&quot;)?</a></p>
  
  <pre><code>Fmt &lt;- c(" %s\n", "%s\n", "%s")
  sprintf(paste(Fmt2, collapse = ""), "First line very long title ending with newline",
          "Second line also very long so it extends to the right out of RStudio pane",
          "Third line to emphasize how far you have to scroll right") 
  </code></pre>
  
  <p>Nor does this SO question help, since it is based on plotmath not cooperating with ggplot. <a href="https://stackoverflow.com/questions/16074440/r-ggplot2-center-align-a-multi-line-title">R ggplot2 center align a multi-line title</a>
  has to do with mixing plotmath and ggplot  </p>