Straightforward way to add axis labels to pheatmap?

mymat <- matrix(rexp(100, rate=1), ncol=10)


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?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.