library(pheatmap)
mymat <- matrix(rexp(100, rate=1), ncol=10)
pheatmap(mymat)
The plotted heatmap looks how I want it, but I cannot figure out a straightforward way to add labels to the x-axis and left y-axis. I can modify the title using main
, but no such option for the axes.
Additionally, some threads suggest trying to use the grid package, and modify grid.text - but this seems a bit convoluted and consistently messes with my plot's aspect ratio.
Is there a better way?