在heatmap.2函数中更改标题fontsize?

use*_*084 7 r font-size heatmap

我正在使用该heatmap.2软件包制作热图:

heatmap.2(as.matrix(FOOBAR.txt[rowSums (abs(FOOBAR.txt)) != 0,]),
          col=scaleyellowred,
          margins = c(10, 20),
          trace="none",
          xlab = "Comparisons",
          ylab ="gene",
          lhei = c(2, 8),
          scale=c("none"),
          symbreaks=T,
          cexRow=0.5,
          cexCol=.7,
          main="gene comparisons")
Run Code Online (Sandbox Code Playgroud)

输出给我一个热像图看起来像我想要的看起来很好,除了主标题字体很大.如何减小标题的字体大小?我似乎无法弄明白.我可以改变轴标签的字体而不是标题.

ags*_*udy 10

heatmap.2 使用此语句打印图标题:

title(main, cex.main = 1.5 * op[["cex.main"]])
Run Code Online (Sandbox Code Playgroud)

所以你应该cex.mainpar列表中设置参数.例如:

par(cex.main=0.5) ## this will affect also legend title font size
Run Code Online (Sandbox Code Playgroud)