剧情标题的文字换行 [英] Text wrap for plot titles
本文介绍了剧情标题的文字换行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我对R中的情节有一个很长的标题,并且一直延伸到情节之外 窗户.如何将标题包裹在两行上?
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?
推荐答案
尝试在标题中间添加"\ n"(换行).例如:
try adding "\n" (new line) in the middle of your title. For example:
plot(rnorm(100), main="this is my title \non two lines")
这篇关于剧情标题的文字换行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文