Chapter 7 Titles
Adding row, column and plot titles to your heatmap is easy.
7.1 Plot title
Plot titles are very important for presenting your visualizations. You can set the plot title by title
.
superheat(mtcars,
# scale the matrix columns
scale = TRUE,
# plot title
title = "Superheat for mtcars",
title.size = 8)
Note that the default plot title is left-aligned. This can be changed using the title.alignment
argument whose options are left
, center
, and right
.
7.2 Row and column titles
Adding titles to the columns and rows is easy too. Simply supply the desired row and column titles for the row.title
and column.title
arguments