Chapter 9 Adding text

It is easy to add text to each cell in the heatmap using the X.text argument. Below we simply plot the raw matrix over the top of the heatmap, but you could add any matrix of numbers or character strings.

9.2 Font size

You can change size of the text by providing a single number or a matrix of numbers to the argument X.text.size. If providing a matrix, the dimension must be identical to that of the X matrix provided.

9.3 Text angle

You can change the angle of the text by providing a single number (the number of degrees between 0 and 360) or a matrix of numbers to the argument X.text.angle. If providing a matrix, the dimension must be identical to that of the X matrix provided.