Can be visualized clustering with the heatmap()?

Could you give me an example? How to get the graph: