How to make a clustered heatmap
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a text column for Row label and one or more number columns for Columns.
-
Check the columns
The clustered heatmap picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a clustered heatmap?
A clustered heatmap colours every value in a table and reorders the rows and columns so that similar ones sit together, with a dendrogram (tree) on each side showing how they were grouped. It is widely used for gene expression and other wide lab data.
How to read it
Each cell's colour is a z-score: red is above the average, blue below, and dark near average. When all columns share one unit, values are standardised within each row, so you compare a gene's pattern across samples rather than its overall level; when the units differ, they are standardised within each column. Branches that join low down in a tree are very similar; the height of a join is the average distance between the two groups. Blocks of one colour show sets of rows that behave alike in a set of columns.
When to use it
Group similar rows and columns of a data matrix, with the tree that joins them. It is one of the correlation charts, which show how two or more measures move together.
To show raw values without reordering, use a Heatmap. To see how strongly each pair of measures moves together, a Correlation matrix is clearer.
Tips for a better clustered heatmap
- Log-transform skewed data such as raw counts or intensities before you paste them, so a few huge values do not decide the clusters.
- Keep the row and column labels short; gene symbols or sample codes work better than long descriptions.
- Treat the clusters as a hypothesis to test, since hierarchical clustering will find groups in any data, including random noise.
Data you need
One row per item with a text column for Row label and one or more number columns for Columns. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Gene | Control 1 | Control 2 | Control 3 | Control 4 | Drug 1 | Drug 2 | Drug 3 | Drug 4 |
|---|---|---|---|---|---|---|---|---|
| MKI67 | 8.31 | 8.08 | 8.04 | 8.40 | 5.99 | 6.64 | 6.02 | 7.13 |
| PLK1 | 8.09 | 8.08 | 8.63 | 8.44 | 5.00 | 5.62 | 6.24 | 5.62 |
| BBC3 | 10.57 | 10.52 | 9.84 | 10.00 | 12.35 | 13.40 | 12.83 | 13.04 |
| GADD45A | 8.29 | 8.64 | 8.34 | 7.98 | 11.20 | 11.22 | 11.04 | 10.69 |
| GAPDH | 10.31 | 9.67 | 10.03 | 10.26 | 9.89 | 9.72 | 9.92 | 9.91 |
| TUBB | 8.29 | 8.40 | 8.32 | 8.52 | 8.12 | 8.24 | 8.58 | 8.21 |
| E2F1 | 7.80 | 7.70 | 7.87 | 8.30 | 6.02 | 6.23 | 6.05 | 5.86 |
| RPLP0 | 12.25 | 12.14 | 12.31 | 12.09 | 11.96 | 12.25 | 12.61 | 11.96 |
Other charts for the same data
More correlation charts
Questions, answered
- What is a clustered heatmap?
- A clustered heatmap colours every value in a table and reorders the rows and columns so that similar ones sit together, with a dendrogram (tree) on each side showing how they were grouped. It is widely used for gene expression and other wide lab data.
- How do you read a clustered heatmap?
- Each cell's colour is a z-score: red is above the average, blue below, and dark near average. When all columns share one unit, values are standardised within each row, so you compare a gene's pattern across samples rather than its overall level; when the units differ, they are standardised within each column. Branches that join low down in a tree are very similar; the height of a join is the average distance between the two groups. Blocks of one colour show sets of rows that behave alike in a set of columns.
- How do I make a clustered heatmap?
- Paste your data into the chart maker with a text column for Row label and one or more number columns for Columns. The clustered heatmap draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a clustered heatmap?
- Group similar rows and columns of a data matrix, with the tree that joins them. It belongs to the correlation family of charts, which show how two or more measures move together. To show raw values without reordering, use a Heatmap. To see how strongly each pair of measures moves together, a Correlation matrix is clearer.
- Is this clustered heatmap maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the clustered heatmap as SVG or PNG.