resize and adjust the heatmap in heatmap.2

前端 未结 2 1452
说谎
说谎 2021-01-11 20:25

I\'ve generated a heatmap like this: \"enter

The X-axis and Y-axis labels don\'t show

相关标签:
2条回答
  • 2021-01-11 20:38

    A few tips:

    • to reduce the font size, use the cexRow and cexCol arguments, e.g.

      heatmap.2(x, ...., cexRow=0.5)
      
    • Adjust the values in the hlei and margins arguments.

    0 讨论(0)
  • 2021-01-11 20:52

    I see that you are already using the margins parameter, what if you just modify the arguments as @csgillespie suggested?

    e.g., margins = c(8, 8)

    Maybe also modifying the general plot margins before calling the heatmap() function could help

    e.g., par(mar=c(10,4,4,2))

    or for the outer margin

    par(oma=c(10,4,4,2))

    where par(mar=c(bottom,left,top,right))

    0 讨论(0)
提交回复
热议问题