【问题标题】:Change title fontsize in heatmap.2 function?在 heatmap.2 函数中更改标题字体大小?
【发布时间】:2013-12-26 20:49:38
【问题描述】:

我正在使用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")

输出给了我一个我想要的热图,看起来不错,但主标题字体很大。如何减小标题的字体大小?我似乎无法弄清楚。我可以更改轴标签的字体,但不能更改标题。

【问题讨论】:

    标签: r font-size heatmap


    【解决方案1】:

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

    title(main, cex.main = 1.5 * op[["cex.main"]])
    

    所以你应该在par 列表中设置cex.main 参数。例如:

    par(cex.main=0.5) ## this will affect also legend title font size
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-02-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-01-30
      • 1970-01-01
      相关资源
      最近更新 更多