📜  更改绘图中标题的字体 - R 编程语言代码示例

📅  最后修改于: 2022-03-11 14:52:00.898000             🧑  作者: Mango

代码示例1
x<-1:10; y<-x*x
plot(x,y, main = "", xlab="", ylab="",
     col.axis="blue", type="l") 
title(main = "Main title", sub = "Sub-title",
      xlab = "X axis", ylab = "Y axis",
      cex.main = 2,   font.main= 4, col.main= "red",
      cex.sub = 0.75, font.sub = 3, col.sub = "green",
      col.lab ="darkblue"
      )