0

For reasons of comparison of two heatmaps associating categorical variables, I would like to know how I can adjust the "Count" axis of the density plot/histogram superimposed on the color key such that in both heatmaps the keys including the histogram are more easily comparable?

I would expect to have something like

heatmap.2( 
   ...
   key.ylim=c(min,max),
   ...
)

available but it seems as if this is hardcoded in heatmap.2. I am not sure whether I can do this via key.ytickfun or key.par.

Thank you for an answer.

Mario
  • 121
  • 1
  • 5
  • use the `breaks=seq(min, max, length.out=length)` option? – Peybae Aug 18 '18 at 18:30
  • @Peyman: As far as I understood and tried, `breaks` would allow me to adjust the number of bins of the histogram = number of colors along the x-axis, right? However, I am looking for a way to adjust the y-axis settings. – Mario Aug 19 '18 at 08:04

0 Answers0