Self-define a color mapping function for continous values.
Define the same color mapping for multiple heatmaps so that the color interpolations are comparable between heatmaps.
Define a vector of colors for continous matrix
Assign discrete color mapping for a numeric matrix.
Set color for character matrix
A heatmap with NA values
Set colors for heatmap borders and cell orders.
Set both row title and column title
Put column title to the bottom of the heatmap and put the row title to the right of the heatmap.
Set horizontal row title
Set graphics parameters for title
Set title as a math formula
Set customized title with gridtext package