r - Put the Y axis on the left of a heatmap? -


How do I do a heatmap with the Y axis label on the left? Does it seem to be the default to correct me axis () ?

need to create a custom axis. The heatmap function is hard-coded, but to be located on the other side it will be very easy to change only one number. Type "heatmap" on your console and change the first argument from 4 to 2 in the second axis () call.

Whatever I had changed:

  axis (2, iy, labels = labRow, las = 2, line = -0.5, tick = 0, # 2 4 cex.axis = used to be cexRow)   

The margin still needs to be changed to accommodate the switch. By changing the present value of 0 to 5, I was making enough space for example from the help page:

  ... par (mar = c (margins [1L], 5, 0, Margin [2L]))   

This was a test case:

  x    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -