【发布时间】:2013-08-16 17:23:11
【问题描述】:
我在 R 中有以下直方图:
hist(
alpha, cex.main=2, cex.axis=1.2, cex.lab=1.2,
main=expression(
paste("Histogram of ", hat(mu), ", Bootstrap samples, Allianz")
)
)
标题太长,想换行。根据这个thread我试过了
hist(
alpha, cex.main=2, cex.axis=1.2, cex.lab=1.2,
main=expression(
paste("Histogram of ", hat(mu), ",cat("\n") Bootstrap samples, Allianz")
)
)
或
hist(
alpha, cex.main=2, cex.axis=1.2, cex.lab=1.2,
main=expression(
paste("Histogram of ",hat(mu), cat("\n"),", Bootstrap samples, Allianz")
)
)
但是两者都不起作用,如何在 paste() 中换行?
【问题讨论】:
标签: r plot title line-breaks plotmath