图标题行间距的上标

时间:2014-04-10 16:37:01

标签: r text superscript

请原谅我无法在此论坛上正确提问。我是R的新手,我想尽可能多地吸收。我最初开始这个页面的问题是如何在5行图标题中创建一个超级脚本字符。我已经找到了我无法使用的原始问题:

mtext(expression(paste(plain("begining of figure caption") ^ plain("superscript 
characters"), plain("end of figure caption"))), line=5.5, cex=0.7, adj=0, side=1)

带有多行标题。显然回车+换行将甩开

mtext(expression(paste

表达。既然我知道mtext只适用于一行文本(与AutoCAD mtext混淆)我的新代码如下:

mtext('first line of caption', side = 1, outer = TRUE, line =1.5, cex= 0.70, adj = 0) 
mtext('second line of caption', side = 1, outer = TRUE, line =2.5, cex= 0.70, adj = 0)
mtext('third line of caption', side = 1, outer = TRUE, line =3.5, cex= 0.70, adj = 0)
mtext(expression(paste(plain("begining of third line figure caption") ^ plain("superscript characters"), plain("end of third line of figure caption"))), line=4.5, cex=0.7, adj=0, side=1)
mtext('fifth line of caption', side = 1, outer = TRUE, line =5.5, cex= 0.70, adj = 0)

上面的代码以正确的顺序打印行,并使用超级脚本字符(小胜利)。但现在我的问题是线条间隔不均匀。第四行更接近第三行,第五行似乎漂浮在第四行之下。

0 个答案:

没有答案