2017-08-01 75 views

回答

1

替代添加第二主标题和增加字体大小是使用title()plot()。使用title()您还可以添加和操作“第二个标题”的位置以及字体类型。

因此,代码看起来是这样的:

plot(1, main = paste("X:",1," ","Y:", 2," ")) 
    # In order to change font size use cex.main and in order to manipulate 
    # the position of second title use line() 
    title(main = ("Z: 3"), line = 0.5, cex.main = 0.8) 

和输出(Z的字体:3是更小) enter image description here

相关问题