2017-08-01 47 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

相關問題