5

I was wondering in my bquote() code below, why even though I use \n the text after \n doesn't go to the next line?

g <- 5
main = bquote(bold("mean effect ("*mu*")"*"\n of"~.(g)~"studies"))
plot(1, main = main)
  • 1
    You can use `atop` ie. `main = bquote(bold(atop("mean effect ("*mu*")")~"of"~.(g)~"studies"))` – akrun Nov 20 '19 at 17:58

1 Answers1

3

We can use atop instead of \n

main <- bquote(bold(atop("mean effect ("*mu*")", "of"~.(g)~"studies"~phantom(100))))
plot(1, main = main)
akrun
  • 874,273
  • 37
  • 540
  • 662