我在 R 中有以下直方图:
hist(
alpha, cex.main=2, cex.axis=1.2, cex.lab=1.2,
main=expression(
paste("Histogram of ", hat(mu), ", 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")
)
)
或者
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() 中换行?