这个问题在这里已经有了答案:
Line break in expression()?
(2 个回答)
How to have a new line in a `bquote` expression used with `text`?
(3 个回答)
1年前关闭。
我想知道我的 bquote()
下面的代码,为什么即使我使用 \n
\n
之后的文字不去下一行?
g <- 5
main = bquote(bold("mean effect ("*mu*")"*"\n of"~.(g)~"studies"))
plot(1, main = main)
最佳答案
我们可以使用 atop
而不是 \n
main <- bquote(bold(atop("mean effect ("*mu*")", "of"~.(g)~"studies"~phantom(100))))
plot(1, main = main)
关于r - 为什么 `\n` 不会将文本移动到 R 中的下一行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58960587/