This PR contains three improvements which I've found useful when using pheatmap.
Honor number_format when using a matrix in display_numbers. This is technically a bugfix(?)
Allow number_color to be a function, which allows setting text color based on background color. This is useful for getting good contrast against colormaps.
Honor gaps_row/col settings when clustering rows/columns if cutree_rows/cols is unset. This allows for greater customization and doesn't hurt, right?
This PR contains three improvements which I've found useful when using pheatmap.
Cheers!