情节标题的文本换行 [英] Text wrap for plot titles
本文介绍了情节标题的文本换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 R 中有一个很长的情节标题,它一直延伸到情节之外窗户.如何将标题包装在 2 行上?
I have a long title for a plot in R and it keeps extending outside the plot window. How can I wrap the title over 2 rows?
推荐答案
尝试在标题中间添加 "(新行).例如:
try adding " " (new line) in the middle of your title. For example:
plot(rnorm(100), main="this is my title
on two lines")
这篇关于情节标题的文本换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文